mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-13 21:45:58 +08:00
fix bug
This commit is contained in:
@@ -7,7 +7,7 @@ func SetClientInitConfig(m map[string]interface{}) error {
|
||||
if result.Error != nil {
|
||||
return result.Error
|
||||
}
|
||||
if result.RowsAffected == 1 {
|
||||
if result.RowsAffected == 0 {
|
||||
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).Create(m).Error
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user