fix: 404 when no account
This commit is contained in:
parent
d20e1696de
commit
8849a179dd
@ -50,7 +50,7 @@ func (s *Service) getCurrentAccount(ctx *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
account, err := s.dal.AccountRepo.GetAccountByID(ctx.Context(), accountID)
|
||||
if err != nil {
|
||||
if err != nil && err != sql.ErrNoRows {
|
||||
return ctx.Status(fiber.StatusInternalServerError).SendString(err.Error())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user