better documentation

This commit is contained in:
lesion
2019-08-06 01:12:05 +02:00
parent 60edcbb970
commit 689b4d0a76
29 changed files with 261 additions and 823 deletions

View File

@@ -26,14 +26,14 @@ module.exports = {
try {
await db.user.findAll()
consola.warn(`⚠️ Non empty db! Please move your current db elsewhere than retry.`)
return -1
consola.warn(`⚠️ Non empty db! Please move your current db elsewhere than retry.`)
return false
} catch(e) { }
consola.info(`Create tables schema`)
await db.sequelize.sync().catch(e => {
consola.error('Error creating tables', e)
return -1
return false
})
// create admin user