Don't return sql.ErrNoRows on DeletePeeks since that is not an error condition

This commit is contained in:
Neil Alexander 2020-09-08 14:06:08 +01:00
parent 56001d0d4f
commit 6fe281a13d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -186,6 +186,9 @@ func (d *Database) DeletePeeks(
sp, err = d.Peeks.DeletePeeks(ctx, nil, roomID, userID)
return nil
})
if err == sql.ErrNoRows {
err = nil
}
return
}