UPDATE: Fix bug
All checks were successful
Build and Release / release (push) Successful in 1m27s

This commit is contained in:
2026-04-10 15:52:09 +07:00
parent 0896fd587e
commit af76d2a26a
22 changed files with 586 additions and 129 deletions

View File

@@ -318,9 +318,9 @@ func (a *authService) Signup(ctx context.Context, dto *request.SignUpDto) (*resp
return nil, fiber.NewError(fiber.StatusInternalServerError, err.Error())
}
err = a.roleRepo.AddUserRole(
err = a.roleRepo.CreateUserRole(
ctx,
sqlc.AddUserRoleParams{
sqlc.CreateUserRoleParams{
UserID: userId,
Column2: []pgtype.UUID{roleId},
},
@@ -464,9 +464,9 @@ func (a *authService) SigninWithGoogle(ctx context.Context, dto *request.SigninW
return nil, fiber.NewError(fiber.StatusInternalServerError, err.Error())
}
err = a.roleRepo.AddUserRole(
err = a.roleRepo.CreateUserRole(
ctx,
sqlc.AddUserRoleParams{
sqlc.CreateUserRoleParams{
UserID: userId,
Column2: []pgtype.UUID{roleId},
},