mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 10:40:25 +08:00
所有数据库相关的操作支持事务
This commit is contained in:
@@ -22,7 +22,9 @@ func (this *ACMEAuthenticationService) FindACMEAuthenticationKeyWithToken(ctx co
|
||||
return nil, errors.New("'token' should not be empty")
|
||||
}
|
||||
|
||||
auth, err := models.SharedACMEAuthenticationDAO.FindAuthWithToken(req.Token)
|
||||
tx := this.NullTx()
|
||||
|
||||
auth, err := models.SharedACMEAuthenticationDAO.FindAuthWithToken(tx, req.Token)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user