Fix utils being required too late in index.js

cshd
Dragory 2020-11-05 01:29:54 +02:00
parent 4337d74aba
commit 968d780e28
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,8 @@ try {
process.exit(1); process.exit(1);
} }
const utils = require("./utils");
// Error handling // Error handling
// Force crash on unhandled rejections and uncaught exceptions. // Force crash on unhandled rejections and uncaught exceptions.
// Use something like forever/pm2 to restart. // Use something like forever/pm2 to restart.
@ -84,7 +86,6 @@ try {
} }
const config = require("./cfg"); const config = require("./cfg");
const utils = require("./utils");
const main = require("./main"); const main = require("./main");
const knex = require("./knex"); const knex = require("./knex");