From becd3eb8f11a11ce360ceb35fe96806eeeac9edd Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 15 Mar 2023 16:30:10 +0800 Subject: [PATCH] Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode # Conflicts: # pkg/common/mw/rpc_server_interceptor.go --- pkg/common/db/relation/user_model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/common/db/relation/user_model.go b/pkg/common/db/relation/user_model.go index 7b1a33efb..e7a5f2a8e 100644 --- a/pkg/common/db/relation/user_model.go +++ b/pkg/common/db/relation/user_model.go @@ -16,9 +16,9 @@ func NewUserGorm(db *gorm.DB) relation.UserModelInterface { return &UserGorm{DB: db.Model(&relation.UserModel{})} } -func (u *UserGorm) db() gorm.DB { +func (u *UserGorm) db() *gorm.DB { newDB := *u.DB - return newDB + return &newDB } // 插入多条