fix: 404 when no account

This commit is contained in:
skeris 2024-03-26 22:37:39 +03:00
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())
}