aboutsummaryrefslogtreecommitdiff
path: root/src/api/database
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-10-12 21:14:19 +0900
committerPitu <[email protected]>2019-10-12 21:14:19 +0900
commitbca8fbcd839d2239e3f6f141f662fbbc74726835 (patch)
tree174fb569e7ae5fb3daf4cbfbfb0d957db976074b /src/api/database
parentAdded new links to the navbar (diff)
downloadhost.fuwn.me-bca8fbcd839d2239e3f6f141f662fbbc74726835.tar.xz
host.fuwn.me-bca8fbcd839d2239e3f6f141f662fbbc74726835.zip
refactor: removed useless code, cleaned up, fixed permissions
Diffstat (limited to 'src/api/database')
-rw-r--r--src/api/database/seeds/initial.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/database/seeds/initial.js b/src/api/database/seeds/initial.js
index bb4ce8c..280fd74 100644
--- a/src/api/database/seeds/initial.js
+++ b/src/api/database/seeds/initial.js
@@ -3,7 +3,7 @@ const moment = require('moment');
exports.seed = async db => {
const now = moment.utc().toDate();
- const user = await db.table('users').where({ username: 'root' }).first();
+ const user = await db.table('users').where({ username: process.env.ADMIN_ACCOUNT }).first();
if (user) return;
try {
const hash = await bcrypt.hash(process.env.ADMIN_PASSWORD, 10);