FIX: UserSeeder
ADD: Get-Self endpoint for users ADD: Category and Role Seeder FIX: Login Check Bug ADD: Extra fields for documents and images in belonging model ADD: localhost:5173 to cors ADD: SuperAdmin ID to env
This commit is contained in:
@@ -29,7 +29,7 @@ const runSeeder = async () => {
|
||||
await Role.deleteMany({})
|
||||
console.log(chalk.red('Deleted all role records.'))
|
||||
|
||||
await Role.insertMany(roles, null)
|
||||
await Role.create(roles, null)
|
||||
console.log(chalk.green.bold(`ROLE: Created ${roles.length} role(s)`))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user