From 9c563492e1fa70167646f235758248ff906ed606 Mon Sep 17 00:00:00 2001 From: Opliko Date: Tue, 16 Feb 2021 22:22:50 +0100 Subject: [PATCH] Fix require --- library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.js b/library.js index 1a29450..beb1895 100644 --- a/library.js +++ b/library.js @@ -25,7 +25,7 @@ const parsePost = (data, callback) => { }; module.exports.parsePost = parsePost; -var posts = module.parent.require('./posts'); +const posts = require.main.require('./src/posts'); const buildComposer = async (data, callback) => { var req = data.req;