Merge branch 'xjjdev'
This commit is contained in:
commit
246de253b2
@ -9,6 +9,7 @@ import (
|
|||||||
"github.com/fonchain/fonchain-artistinfo/pb/artistInfoUser"
|
"github.com/fonchain/fonchain-artistinfo/pb/artistInfoUser"
|
||||||
db "github.com/fonchain/fonchain-artistinfo/pkg/db"
|
db "github.com/fonchain/fonchain-artistinfo/pkg/db"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
"gorm.io/gorm/clause"
|
||||||
|
|
||||||
"github.com/fonchain/fonchain-artistinfo/cmd/internal/logic"
|
"github.com/fonchain/fonchain-artistinfo/cmd/internal/logic"
|
||||||
)
|
)
|
||||||
@ -82,7 +83,7 @@ func (a *ArtistInfoUserProvider) UpdateIdCard(ctx context.Context, in *artistInf
|
|||||||
if in.Birthday != "" {
|
if in.Birthday != "" {
|
||||||
thisUser.RealNameInfo.Birthday = in.Birthday
|
thisUser.RealNameInfo.Birthday = in.Birthday
|
||||||
}
|
}
|
||||||
err = db.DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&thisUser).Error
|
err = db.DB.Session(&gorm.Session{FullSaveAssociations: true}).Clauses(clause.OnConflict{UpdateAll: true}).Save(&thisUser).Error
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user