Skip to content

Commit

Permalink
try fix: not found in BanUserForever
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Oct 10, 2024
1 parent 36d6ebc commit dae4bcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apis/penalty/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ func BanUserForever(c *fiber.Ctx) error {
return err
}

err = tx.Clauses(clause.Locking{Strength: "UPDATE"}).Model(&Division{}).Select("id").Scan(&divisionIDs).Error
log.Info().Msgf("ban user forever: %v", user)

err = tx.Clauses(clause.Locking{Strength: "UPDATE"}).Model(&Division{}).Select("ID").Scan(&divisionIDs).Error
if err != nil {
return err
}
Expand Down

0 comments on commit dae4bcb

Please sign in to comment.