mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Don't yell if no rows affected on deletion
This commit is contained in:
parent
1f06794904
commit
d96d0f4a72
|
|
@ -109,6 +109,9 @@ func (s *relationsStatements) DeleteRelation(
|
|||
_, err := stmt.ExecContext(
|
||||
ctx, roomID, childEventID,
|
||||
)
|
||||
if err == sql.ErrNoRows {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue