Skip to content

Commit 9c07b15

Browse files
authored
Fix where syntax (#2676)
1 parent 8a21a4c commit 9c07b15

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

server/store/datastore/server_config.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ func (s storage) ServerConfigSet(key, value string) error {
4343
return err
4444
}
4545

46-
// TODO change to Where() when https://gitea.com/xorm/xorm/issues/2358 is solved
47-
_, err = s.engine.Cols("value").Update(config, &model.ServerConfig{
48-
Key: key,
49-
})
46+
_, err = s.engine.Where("`key` = ?", config.Key).Cols("value").Update(config)
5047
return err
5148
}
5249

0 commit comments

Comments
 (0)