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 {
302302 private static async SeedDefaultData ( ) {
303303 const prisma = new PrismaClient ( ) ;
304304 // Ensure the 'admin' role exists with permissions
305- prisma . role
305+ await prisma . role
306306 . upsert ( {
307307 where : { name : 'admin' } ,
308308 update : { } ,
@@ -330,7 +330,7 @@ export class DatabaseService {
330330 } ) ;
331331
332332 // Ensure the 'member' role exists with limited permissions
333- prisma . role
333+ await prisma . role
334334 . upsert ( {
335335 where : { name : 'member' } ,
336336 update : { } ,
@@ -358,7 +358,7 @@ export class DatabaseService {
358358 } ) ;
359359
360360 // Ensure the 'guest' role exists with minimal permissions
361- prisma . role
361+ await prisma . role
362362 . upsert ( {
363363 where : { name : 'guest' } ,
364364 update : { } ,
@@ -400,7 +400,7 @@ export class DatabaseService {
400400 } ) ;
401401
402402 // Ensure the 'admin' user group exists
403- prisma . userGroup
403+ await prisma . userGroup
404404 . upsert ( {
405405 where : { name : 'admin' } ,
406406 update : { } ,
You can’t perform that action at this time.
0 commit comments