pull/351/head
wangchuxiao 2 years ago
parent 1f8c2ba8c5
commit d57729d3d7

@ -3,7 +3,7 @@ package im_mysql_model
import "Open_IM/pkg/common/db"
func SetClientInitConfig(m map[string]interface{}) error {
result := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).Updates(m)
result := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).Where("1=1").Updates(m)
if result.Error != nil {
return result.Error
}

Loading…
Cancel
Save