Fix typo
This commit is contained in:
parent
46dcff83c3
commit
52d23b8920
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func CreateTheme(name string) (Theme, error) {
|
|||
}
|
||||
|
||||
func (t Theme) Update() (int64, error) {
|
||||
if res, err := DBExec("UPDATE themes SET name = ? WHERE id_team = ?", t.Name, t.Id); err != nil {
|
||||
if res, err := DBExec("UPDATE themes SET name = ? WHERE id_theme = ?", t.Name, t.Id); err != nil {
|
||||
return 0, err
|
||||
} else if nb, err := res.RowsAffected(); err != nil {
|
||||
return 0, err
|
||||
|
|
Reference in a new issue