summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-13 02:03:12 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-13 02:03:12 +0900
commit665df6887dc3d526a1f4bcb07e97448a90132e88 (patch)
tree8664192aacba15993fbeaf81b87372007e62e74c /tools
parentAdd migration script (diff)
downloadsharkey-665df6887dc3d526a1f4bcb07e97448a90132e88.tar.gz
sharkey-665df6887dc3d526a1f4bcb07e97448a90132e88.tar.bz2
sharkey-665df6887dc3d526a1f4bcb07e97448a90132e88.zip
oops
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/node.2018-03-13.othello.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/migration/node.2018-03-13.othello.js b/tools/migration/node.2018-03-13.othello.js
index 12d9e09533..4598f8d832 100644
--- a/tools/migration/node.2018-03-13.othello.js
+++ b/tools/migration/node.2018-03-13.othello.js
@@ -11,7 +11,9 @@ const migrate = async (doc) => {
});
const result = await Othello.update(doc._id, {
- $set: doc.logs
+ $set: {
+ logs: doc.logs
+ }
});
return result.ok === 1;