fix: relocate db scripts

This commit is contained in:
Bobby Wibowo 2022-06-22 13:54:20 +07:00
parent 409d0c4ffd
commit 66e44f5eb3
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -249,7 +249,7 @@ safe.use('/api', api)
;(async () => {
try {
// Init database
await require('./database/db.js')(utils.db)
await require('./controllers/utils/initDatabase.js')(utils.db)
// Verify paths, create missing ones, clean up temp ones
await paths.init()