From 9199414ea38f6628ab4460f7cd696ed8b29e5a92 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 16:16:13 +0900 Subject: [PATCH] oops --- tools/migration/nighthike/5.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/migration/nighthike/5.js b/tools/migration/nighthike/5.js index 2221b667a3..3989ea6301 100644 --- a/tools/migration/nighthike/5.js +++ b/tools/migration/nighthike/5.js @@ -1,6 +1,8 @@ // for Node.js interpret -const { default: Post } = require('../../../built/models/note'); +const mongodb = require("../../../built/db/mongodb"); +const Post = mongodb.default.get('posts'); + const { default: zip } = require('@prezzemolo/zip') const migrate = async (post) => {