mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor on account CLI
This commit is contained in:
parent
660b866f2f
commit
cb0240d348
1 changed files with 2 additions and 3 deletions
|
@ -28,13 +28,12 @@ async function modify (args) {
|
|||
async function create (args) {
|
||||
await _initializeDB()
|
||||
const User = require('../api/models/user')
|
||||
console.error(args)
|
||||
const user = await User.create({
|
||||
email: args.email,
|
||||
is_active: true,
|
||||
is_admin: args.admin || false
|
||||
})
|
||||
console.error(user)
|
||||
}).catch(e => console.error(String(e)))
|
||||
console.error(JSON.stringify(user, null, 2))
|
||||
await db.close()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue