Commit e0a085f3 authored by hujiebin's avatar hujiebin

fix

parent f5a809c4
......@@ -214,7 +214,7 @@ func (diamondAccountDetail *DiamondAccountDetail) PersistentNoInTransactional()
}
var newDiamondAccount DiamondAccount
if err := diamondAccountDetail.DB().Table(DiamondAccountDetail{}.TableName()).First(&newDiamondAccount, diamondAccountDetail.diamondAccount.ID).Error; err != nil {
if err := diamondAccountDetail.Db.First(&newDiamondAccount, diamondAccountDetail.diamondAccount.ID).Error; err != nil {
return myerr.WrapErr(err)
}
......@@ -265,7 +265,7 @@ func (diamondAccountDetail *DiamondAccountDetail) Persistent() error {
}
var newDiamondAccount DiamondAccount
if err := diamondAccountDetail.DB().Table(DiamondAccountDetail{}.TableName()).First(&newDiamondAccount, diamondAccountDetail.diamondAccount.ID).Error; err != nil {
if err := diamondAccountDetail.Db.First(&newDiamondAccount, diamondAccountDetail.diamondAccount.ID).Error; err != nil {
return myerr.WrapErr(err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment