From 182e672086e559e6daa804a75205734ef1f972dc Mon Sep 17 00:00:00 2001 From: jie Date: Mon, 4 Nov 2024 00:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- document/command.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 document/command.json 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