From df1ed890efbb7678251dd4e25532f037a218dd76 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Sat, 29 Jul 2023 19:02:15 +0800 Subject: [PATCH] fix --- domain/model/diamond_m/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/diamond_m/repo.go b/domain/model/diamond_m/repo.go index be53567..76816cd 100755 --- a/domain/model/diamond_m/repo.go +++ b/domain/model/diamond_m/repo.go @@ -43,7 +43,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) } -- 2.22.0