Fix tests failing #36

Merged
seeseemelk merged 2 commits from bugfix/post-not-working into main 2025-05-13 19:34:44 +02:00
Showing only changes of commit dd942f12f7 - Show all commits

View File

@ -51,9 +51,6 @@ func (db *Db) GetUser(id int) (*UserWithAllowance, error) {
err := db.db.Query("select u.id, u.name, sum(h.amount) from users u join history h on h.user_id = u.id where u.id = ?").
Bind(id).ScanSingle(&user.ID, &user.Name, &user.Allowance)
if errors.Is(err, mysqlite.ErrNoRows) {
return nil, nil
}
if err != nil {
return nil, err
}