We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb4443 commit b98af6eCopy full SHA for b98af6e
backend/apis/exam/driver.go
@@ -70,7 +70,7 @@ func AddDriverPunishment(c *fiber.Ctx) (err error) {
70
}
71
err = DB.Transaction(func(tx *gorm.DB) (err error) {
72
var user User
73
- err = tx.Take(&user, tmpUser.ID).Error
+ err = tx.Clauses(LockingClause).Take(&user, tmpUser.ID).Error
74
if err != nil {
75
return
76
0 commit comments