got followers

This commit is contained in:
lesion
2019-07-29 22:40:27 +02:00
parent 64beb39baa
commit c9780ad565
31 changed files with 334 additions and 373 deletions

View File

@@ -26,8 +26,7 @@ module.exports = {
try {
await db.user.findAll()
consola.warn(`⚠️ Non empty db! Please move your current db elsewhere than retry.
If you want to `)
consola.warn(`⚠️ Non empty db! Please move your current db elsewhere than retry.`)
return -1
} catch(e) { }
@@ -40,7 +39,10 @@ If you want to `)
// create admin user
consola.info('Create admin user', admin)
await db.user.create({
...admin,
email: admin.email,
password: admin.password,
username: admin.email,
display_name: config.title,
is_admin: true,
is_active: true
})