From 6a7c078ba6a8993f66793bb5d0ad23734e0abf35 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Sat, 29 Jul 2023 19:03:12 +0800 Subject: [PATCH] fix --- internal/model/diamond_m/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/diamond_m/repo.go b/internal/model/diamond_m/repo.go index d4d2840..31a9edf 100644 --- a/internal/model/diamond_m/repo.go +++ b/internal/model/diamond_m/repo.go @@ -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 } -- 2.22.0