mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-11 15:12:14 +00:00
Fix where syntax (#2676)
This commit is contained in:
parent
8a21a4c08e
commit
9c07b15c99
1 changed files with 1 additions and 4 deletions
|
@ -43,10 +43,7 @@ func (s storage) ServerConfigSet(key, value string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO change to Where() when https://gitea.com/xorm/xorm/issues/2358 is solved
|
_, err = s.engine.Where("`key` = ?", config.Key).Cols("value").Update(config)
|
||||||
_, err = s.engine.Cols("value").Update(config, &model.ServerConfig{
|
|
||||||
Key: key,
|
|
||||||
})
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue