mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: remove pdoc.psdoc hack
This commit is contained in:
1 parent
c0a3f235ca
commit
71f86cf79b
7 files changed
+21
-37
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user