mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: interface: remove unused collections
This commit is contained in:
1 parent
f77dd8dc98
commit
15b88f00a9
6 files changed
+7
-14
No files matched your search
@@ -306,7 +306,7 @@ export async function setIfNotStatus<T extends keyof DocStatusType, K extends ke
|
||||
domainId: string, docType: T, docId: DocStatusType[T]['docId'], uid: number,
|
||||
key: K, value: DocStatusType[T][K], ifNot: DocStatusType[T][K], args: Partial<DocStatusType[T]>,
|
||||
): Promise<DocStatusType[T]> {
|
||||
const current = await collStatus.findOne({ domainId, docType, docId, uid }) || {};
|
||||
const current: Partial<DocStatusType[T]> = await collStatus.findOne({ domainId, docType, docId, uid }) || {};
|
||||
if (typeof key === 'string' && key.includes('.')) {
|
||||
const acc = key.split('.');
|
||||
let c = current;
|
||||
|
||||
Reference in new issue
Block a user