upgrade dep

This commit is contained in:
undefined committed 2020-08-19 21:11:07 +08:00
1 parent 9887deca6a
commit ce79bfab8b
12 files changed
+31 -29

No files matched your search

+2 -2
View File
@@ -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"
}
}
}
+2 -5
View File
@@ -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.' });