aboutsummaryrefslogtreecommitdiff
path: root/src/api/database/seeds
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-05-10 00:39:53 +0900
committerPitu <[email protected]>2020-05-10 00:39:53 +0900
commit432d86022c5bf31403bc55607c6b0f1a7191e4ca (patch)
treec1f43ccb1bbf76167de6f261148f0a0a5c4a772c /src/api/database/seeds
parentchore: Ignore old db data (diff)
downloadhost.fuwn.me-432d86022c5bf31403bc55607c6b0f1a7191e4ca.tar.xz
host.fuwn.me-432d86022c5bf31403bc55607c6b0f1a7191e4ca.zip
chore: forgot to remove this uuid
Diffstat (limited to 'src/api/database/seeds')
-rw-r--r--src/api/database/seeds/initial.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/api/database/seeds/initial.js b/src/api/database/seeds/initial.js
index 5e906fb..280fd74 100644
--- a/src/api/database/seeds/initial.js
+++ b/src/api/database/seeds/initial.js
@@ -1,6 +1,5 @@
const bcrypt = require('bcrypt');
const moment = require('moment');
-const uuidv4 = require('uuid/v4');
exports.seed = async db => {
const now = moment.utc().toDate();
@@ -9,7 +8,6 @@ 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,