mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
upgrade dep
This commit is contained in:
1 parent
9887deca6a
commit
ce79bfab8b
12 files changed
+31
-29
No files matched your search
@@ -11,11 +11,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/js-yaml": "^3.12.5",
|
||||
"@types/mongodb": "^3.5.25"
|
||||
"@types/mongodb": "^3.5.26"
|
||||
},
|
||||
"dependencies": {
|
||||
"hydrooj": "^2.12.3",
|
||||
"js-yaml": "^3.14.0",
|
||||
"mongodb": "^3.6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -250,6 +250,7 @@ const tasks = {
|
||||
doc_id: 'docId',
|
||||
doc_type: 'docType',
|
||||
owner_uid: 'owner',
|
||||
owner: 'owner',
|
||||
name: 'name',
|
||||
roles: {
|
||||
field: 'roles',
|
||||
@@ -528,11 +529,7 @@ export async function run({
|
||||
}
|
||||
await dst.collection('system').updateOne(
|
||||
{ _id: 'user' },
|
||||
{
|
||||
$set: {
|
||||
value: userCounter.value,
|
||||
},
|
||||
},
|
||||
{ $set: { value: userCounter.value } },
|
||||
{ upsert: true },
|
||||
);
|
||||
await report({ progress: 1, message: 'Collection:system done.' });
|
||||
|
||||
Reference in new issue
Block a user