fix: struct tag (#932)

* fix: struct tag

* fix: struct tag

* fix: strings conversion

* do not write anything after redirection

* fix table

* fix select
This commit is contained in:
UUBulb authored and GitHub committed 2024-12-31 23:09:58 +08:00
1 parent 2d03c61f38
commit 3d591fae78
5 files changed
+16 -12

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ func updateProfile(c *gin.Context) (any, error) {
}
var bindCount int64
if err := singleton.DB.Where("user_id = ?", auth.(*model.User).ID).Count(&bindCount).Error; err != nil {
if err := singleton.DB.Model(&model.Oauth2Bind{}).Where("user_id = ?", auth.(*model.User).ID).Count(&bindCount).Error; err != nil {
return nil, newGormError("%v", err)
}