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) => {