Pubsweet setupdb creates a user that isn't an admin
I've noticed that the admin user is not created correctly when using the setupdb
command of the cli. The versions of the dependencies in package.json
are:
"@pubsweet/db-manager": "^1.0.0"
"pubsweet": "^2.0.0"
"pubsweet-server": "^2.0.0"
The problem is that even with a correct config e.g.
dbManager: {
username: 'admin',
password: 'password',
email: 'admin@example.com',
admin: true,
}
The property of admin: true is missing in the actual record of the db