Skip to content

Commit

Permalink
Fix where syntax (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 authored Oct 31, 2023
1 parent 8a21a4c commit 9c07b15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/store/datastore/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ func (s storage) ServerConfigSet(key, value string) error {
return err
}

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

Expand Down

0 comments on commit 9c07b15

Please sign in to comment.