Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Fix require
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 authored Feb 16, 2021
1 parent dd607c9 commit 9c56349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c56349

Please sign in to comment.