aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-01-05 16:12:25 +0900
committerPitu <[email protected]>2021-01-05 16:12:25 +0900
commitcdeca073ba0d70271898e05346a8d57ec4ec4060 (patch)
tree44cb777570e195f8cc04c89aa84aa179735d9682
parentfix: try to remove thumbnail only if the file has one (diff)
downloadhost.fuwn.me-cdeca073ba0d70271898e05346a8d57ec4ec4060.tar.xz
host.fuwn.me-cdeca073ba0d70271898e05346a8d57ec4ec4060.zip
fix: migration didn't properly grab the env variables
-rw-r--r--src/api/databaseMigration.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/databaseMigration.js b/src/api/databaseMigration.js
index 71ee2e6..dcc71d6 100644
--- a/src/api/databaseMigration.js
+++ b/src/api/databaseMigration.js
@@ -1,3 +1,5 @@
+require('dotenv').config();
+
const nodePath = require('path');
const moment = require('moment');
const jetpack = require('fs-jetpack');