Skip to content

Commit

Permalink
fix: do not show user_id in floor history when user changed it himself
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Sep 28, 2024
1 parent 68f4c90 commit 8912045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/floor/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,9 @@ func GetFloorHistory(c *fiber.Ctx) error {
if err != nil {
return err
}
for _, history := range histories {
if floor.UserID == history.UserID {
history.UserID = 1
for i := range histories {
if floor.UserID == histories[i].UserID {
histories[i].UserID = 1
}
}
return c.JSON(&histories)
Expand Down

0 comments on commit 8912045

Please sign in to comment.