Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:go-park-mail-ru/2023_2_Hamster i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
CodeMaster482 committed Dec 24, 2023
2 parents 43f4e47 + e5ed76e commit 2716741
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/microservices/transaction/delivery/http/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ func (h *Handler) GetFeed(w http.ResponseWriter, r *http.Request) {

var userT *models.User
for _, transaction := range dataFeed {
userT, _ = h.userService.GetUser(r.Context(), transaction.UserID)
userT, err = h.userService.GetUser(r.Context(), transaction.UserID)
if err != nil {
commonHttp.ErrorResponse(w, http.StatusInternalServerError, err, transfer_models.UserFeedServerError, h.logger)
}
dataResponse = append(dataResponse, models.InitTransactionTransfer(transaction, userT.Login))
}

Expand Down

0 comments on commit 2716741

Please sign in to comment.