Collated update methods into an index, fixed typo

This commit is contained in:
Stefan Zermatten
2019-04-01 15:51:11 +02:00
parent a94f437ba8
commit 18493afbbf
3 changed files with 37 additions and 2 deletions

View File

@@ -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});
};
}