diff options
| author | Pitu <[email protected]> | 2020-05-10 00:03:45 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-05-10 00:03:45 +0900 |
| commit | de54e19d3a102cad6364a6f9f50dab48c2367683 (patch) | |
| tree | 28a6249cf4c0103ff9ce85283b0e45de5e57cbd3 /src/api/database/seeds/initial.js | |
| parent | Fix: consistent hash of uploads (diff) | |
| download | host.fuwn.me-de54e19d3a102cad6364a6f9f50dab48c2367683.tar.xz host.fuwn.me-de54e19d3a102cad6364a6f9f50dab48c2367683.zip | |
chore: remove the use of uuid
Diffstat (limited to 'src/api/database/seeds/initial.js')
| -rw-r--r-- | src/api/database/seeds/initial.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/database/seeds/initial.js b/src/api/database/seeds/initial.js index 280fd74..5e906fb 100644 --- a/src/api/database/seeds/initial.js +++ b/src/api/database/seeds/initial.js @@ -1,5 +1,6 @@ const bcrypt = require('bcrypt'); const moment = require('moment'); +const uuidv4 = require('uuid/v4'); exports.seed = async db => { const now = moment.utc().toDate(); @@ -8,6 +9,7 @@ exports.seed = async db => { try { const hash = await bcrypt.hash(process.env.ADMIN_PASSWORD, 10); await db.table('users').insert({ + uuid: uuidv4(), username: process.env.ADMIN_ACCOUNT, password: hash, passwordEditedAt: now, |