mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
系统设置中自定义UI的支持
This commit is contained in:
1 parent
11368bc831
commit
1722fbfaca
21 files changed
+284
-140
No files matched your search
@@ -307,11 +307,10 @@ export async function revSetStatus(
|
||||
};
|
||||
const update = { $set: args, $inc: { rev: 1 } };
|
||||
if (returnDoc) {
|
||||
const res = await coll.findOneAndUpdate(filter, update, { returnOriginal: false });
|
||||
const res = await collStatus.findOneAndUpdate(filter, update, { returnOriginal: false });
|
||||
return res.value;
|
||||
}
|
||||
const res = await coll.updateOne(filter, update);
|
||||
return res;
|
||||
return await collStatus.updateOne(filter, update);
|
||||
}
|
||||
|
||||
export async function ensureIndexes() {
|
||||
|
||||
Reference in new issue
Block a user