Skip to content

Commit

Permalink
fix(core): cast user role into number when creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Dec 14, 2024
1 parent 6d6c7d3 commit 5ab417e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/romainlanz.com/commands/create_user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class CreateUser extends BaseCommand {
created_at: new Date(),
name,
email,
role,
role: Number(role),
password: hashedPassword,
})
.execute();
Expand Down

0 comments on commit 5ab417e

Please sign in to comment.