Skip to content

Commit

Permalink
fix time log
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Aug 15, 2024
1 parent f047a6d commit 7edd695
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/internal/service_ticket/service_ticket.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func (s *serviceImpl) FindByToken(ctx context.Context, token string) (*model.Ser
s.log.Named("FindByToken").Error("DeleteByUserID: ", zap.Error(err))
return nil, apperror.InternalServerError(err.Error())
}
return nil, apperror.NotFoundError("service ticket not found")

s.log.Named("FindByToken").Error("FindByToken: service ticket already expired")
return nil, apperror.NotFoundError("service ticket already expired")
}

return serviceTicket, nil
Expand Down

0 comments on commit 7edd695

Please sign in to comment.