diff options
| author | Pitu <[email protected]> | 2019-10-12 21:14:19 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-10-12 21:14:19 +0900 |
| commit | bca8fbcd839d2239e3f6f141f662fbbc74726835 (patch) | |
| tree | 174fb569e7ae5fb3daf4cbfbfb0d957db976074b /src/api/database | |
| parent | Added new links to the navbar (diff) | |
| download | host.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.js | 2 |
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); |