Update CompleteChore to deduct point properly

This commit is contained in:
Mo Tarbin 2025-01-18 13:11:11 -05:00
parent c473627112
commit 3e0b68bbff
2 changed files with 21 additions and 17 deletions

View file

@ -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{