mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-15 08:13:39 +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)
|
sp, err = d.Peeks.DeletePeeks(ctx, nil, roomID, userID)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
if err == sql.ErrNoRows {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue