mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Don't return sql.ErrNoRows on DeletePeeks since that is not an error condition
This commit is contained in:
parent
56001d0d4f
commit
6fe281a13d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue