core: remove pdoc.psdoc hack

This commit is contained in:
undefined committed 2021-05-25 23:06:20 +08:00
1 parent c0a3f235ca
commit 71f86cf79b
7 files changed
+21 -37

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ export function deleteMultiStatus<K extends keyof DocStatusType>(
export function getMulti<K extends keyof DocType>(
domainId: string, docType: K, query?: FilterQuery<DocType[K]>, projection?: Projection<DocType[K]>,
): Cursor<DocType[K]> {
let cursor = coll.find({ ...query, docType, domainId });
let cursor = coll.find({ docType, domainId, ...query });
if (projection) cursor = cursor.project(buildProjection(projection));
return cursor;
}