Commit 6a7c078b authored by hujiebin's avatar hujiebin

fix

parent 1631c5c2
......@@ -45,7 +45,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 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