Update CompleteChore to deduct point properly
This commit is contained in:
parent
c473627112
commit
3e0b68bbff
2 changed files with 21 additions and 17 deletions
|
@ -519,7 +519,7 @@ func (h *Handler) RedeemPoints(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
err = h.circleRepo.RedeemPoints(c, currentUser.CircleID, currentUser.ID, redeemReq.Points, currentUser.ID)
|
||||
err = h.circleRepo.RedeemPoints(c, currentUser.CircleID, redeemReq.UserID, redeemReq.Points, currentUser.ID)
|
||||
if err != nil {
|
||||
log.Error("Error redeeming points:", err)
|
||||
c.JSON(500, gin.H{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue