Don't yell if no rows affected on deletion

This commit is contained in:
Neil Alexander 2022-10-11 14:21:48 +01:00
parent 1f06794904
commit d96d0f4a72
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -109,6 +109,9 @@ func (s *relationsStatements) DeleteRelation(
_, err := stmt.ExecContext(
ctx, roomID, childEventID,
)
if err == sql.ErrNoRows {
return nil
}
return err
}