mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix document.status unique key
This commit is contained in:
1 parent
08585bd3e9
commit
b4d77d3a2a
5 files changed
+16
-4
No files matched your search
@@ -404,7 +404,7 @@ export async function revSetStatus<T extends keyof DocStatusType>(
|
||||
|
||||
async function ensureIndexes() {
|
||||
const ic = coll.createIndex.bind(coll);
|
||||
const is = collStatus.createIndex.bind(coll);
|
||||
const is = collStatus.createIndex.bind(collStatus);
|
||||
const u = { unique: true };
|
||||
const s = { sparse: true };
|
||||
await ic({ domainId: 1, docType: 1, docId: 1 }, u);
|
||||
|
||||
Reference in new issue
Block a user