Skip to content

Commit

Permalink
feat: savepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrltrent committed Dec 20, 2023
1 parent 020ae5a commit 4c82a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/user/get_awards.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func (h *handler) handleGetAwards(c *gin.Context) {

token, err := utils.UserTokenFromContext(c)
_, err := utils.UserTokenFromContext(c)
if err != nil {
response.New(http.StatusInternalServerError).Err(serverError.Error()).Send(c)
return
Expand All @@ -22,7 +22,7 @@ func (h *handler) handleGetAwards(c *gin.Context) {
query := h.db.
Preload("AwardType").
Model(db.AwardsTotal{}).
Where("user_id = ?", token.UID).
Where("user_id = ?", "sqzTjEWLPzdLRUyTUT8hX80oqn42"). // token.UID
Find(&userAwards).
Error
if query != nil {
Expand Down

0 comments on commit 4c82a20

Please sign in to comment.