Found a copy-paste typo, fixed it. stmtPostNew -> stmtCategoryNew.
This commit is contained in:
parent
e51ceb7388
commit
91a76fb9d7
@ -192,7 +192,7 @@ func (s *SQLiteMindflow) NewCategory(name string) (int64, error) {
|
|||||||
}
|
}
|
||||||
defer tx.Rollback()
|
defer tx.Rollback()
|
||||||
|
|
||||||
r, err := tx.Stmt(stmtPostNew).Exec(name)
|
r, err := tx.Stmt(stmtCategoryNew).Exec(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user