This commit is contained in:
Bastian Wagner
2024-12-27 20:57:37 +01:00
parent 5194298fa6
commit 5363d0880f
33 changed files with 640 additions and 50 deletions

View File

@@ -9,6 +9,6 @@ export class RoleRepository extends Repository<Role> {
}
getStandardRole(): Promise<Role> {
return this.findOne({ where: { name: 'user' } });
return this.findOne({ where: { defaultRole: true } });
}
}