diff --git a/document/command.json b/document/command.json new file mode 100644 index 0000000..95772fa --- /dev/null +++ b/document/command.json @@ -0,0 +1,3 @@ +{ + "建筑":"storage.db['rooms.objects'].find({ type: 'constructionSite' }).then(resp => resp.map(cs => storage.db['rooms.objects'].findOne({ _id: cs._id }).then(csDetail => storage.db['rooms.objects'].update({_id: cs._id }, {$set: { progress: csDetail.progressTotal - 1 }}))))" +} \ No newline at end of file