File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ export class DatabaseService {
302
302
private static async SeedDefaultData ( ) {
303
303
const prisma = new PrismaClient ( ) ;
304
304
// Ensure the 'admin' role exists with permissions
305
- prisma . role
305
+ await prisma . role
306
306
. upsert ( {
307
307
where : { name : 'admin' } ,
308
308
update : { } ,
@@ -330,7 +330,7 @@ export class DatabaseService {
330
330
} ) ;
331
331
332
332
// Ensure the 'member' role exists with limited permissions
333
- prisma . role
333
+ await prisma . role
334
334
. upsert ( {
335
335
where : { name : 'member' } ,
336
336
update : { } ,
@@ -358,7 +358,7 @@ export class DatabaseService {
358
358
} ) ;
359
359
360
360
// Ensure the 'guest' role exists with minimal permissions
361
- prisma . role
361
+ await prisma . role
362
362
. upsert ( {
363
363
where : { name : 'guest' } ,
364
364
update : { } ,
@@ -400,7 +400,7 @@ export class DatabaseService {
400
400
} ) ;
401
401
402
402
// Ensure the 'admin' user group exists
403
- prisma . userGroup
403
+ await prisma . userGroup
404
404
. upsert ( {
405
405
where : { name : 'admin' } ,
406
406
update : { } ,
You can’t perform that action at this time.
0 commit comments