From 968d780e285084602131ed8131fbb66361bdaf1d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 5 Nov 2020 01:29:54 +0200 Subject: [PATCH] Fix utils being required too late in index.js --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f656345..a989886 100644 --- a/src/index.js +++ b/src/index.js @@ -16,6 +16,8 @@ try { process.exit(1); } +const utils = require("./utils"); + // Error handling // Force crash on unhandled rejections and uncaught exceptions. // Use something like forever/pm2 to restart. @@ -84,7 +86,6 @@ try { } const config = require("./cfg"); -const utils = require("./utils"); const main = require("./main"); const knex = require("./knex");