UPDATE: Project Module
All checks were successful
Build and Release / release (push) Successful in 1m15s

This commit is contained in:
2026-04-25 14:05:15 +07:00
parent 44a63f29c6
commit ac90236022
71 changed files with 5110 additions and 257 deletions

View File

@@ -53,7 +53,7 @@ func SeedSuperAdmin(pool *pgxpool.Pool) error {
String: string(hashed),
Valid: len(hashed) != 0,
},
AuthProvider: constants.LocalProvider.String(),
AuthProvider: constants.ProviderTypeLocal.String(),
})
if err != nil {
return err
@@ -70,12 +70,12 @@ func SeedSuperAdmin(pool *pgxpool.Pool) error {
return err
}
adminRole, err := q.GetRoleByName(ctx, constants.ADMIN.String())
adminRole, err := q.GetRoleByName(ctx, constants.RoleTypeAdmin.String())
if err != nil {
return err
}
useRole, err := q.GetRoleByName(ctx, constants.USER.String())
useRole, err := q.GetRoleByName(ctx, constants.RoleTypeUser.String())
if err != nil {
return err
}