diff --git a/tools/migration/nighthike/7.js b/tools/migration/nighthike/7.js index f1102d13ed..ed5f1e6b96 100644 --- a/tools/migration/nighthike/7.js +++ b/tools/migration/nighthike/7.js @@ -1,6 +1,7 @@ // for Node.js interpret -const { default: Post } = require('../../../built/models/post'); +const mongodb = require("../../../built/db/mongodb"); +const Post = mongodb.default.get('posts'); const { default: zip } = require('@prezzemolo/zip') const html = require('../../../built/text/html').default; const parse = require('../../../built/text/parse').default;