mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -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(
|
_, err := stmt.ExecContext(
|
||||||
ctx, roomID, childEventID,
|
ctx, roomID, childEventID,
|
||||||
)
|
)
|
||||||
|
if err == sql.ErrNoRows {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue