Collated update methods into an index, fixed typo
This commit is contained in:
@@ -9,4 +9,4 @@ const docNotFoundError = function({id, collection}){
|
||||
export default function fetchDocByRef({id, collection}, options){
|
||||
return getCollectionByName(collection).findOne(id, options) ||
|
||||
docNotFoundError({id, collection});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user