mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -05:00
added stringification of findOne to work with firewall
This commit is contained in:
parent
3e8cd5d8c4
commit
0656c434e2
1 changed files with 4 additions and 0 deletions
|
@ -231,6 +231,10 @@ export default class Exposure {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (typeof(filters) === 'string') {
|
||||
filters = {_id: filters};
|
||||
}
|
||||
|
||||
collection.firewall(filters, options, userId);
|
||||
|
||||
return findOne(filters, options);
|
||||
|
|
Loading…
Add table
Reference in a new issue