Fix that thing again

This commit is contained in:
Neil Alexander 2022-10-10 17:01:16 +01:00
parent c52f4b95f1
commit 73408a1beb
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -69,7 +69,6 @@ func (d *Database) UpdateRoom(
purgeRoomFirst bool, purgeRoomFirst bool,
) (joinedHosts []types.JoinedHost, err error) { ) (joinedHosts []types.JoinedHost, err error) {
err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error { err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
var joinedHosts []types.JoinedHost
if purgeRoomFirst { if purgeRoomFirst {
if err = d.FederationJoinedHosts.DeleteJoinedHostsForRoom(ctx, txn, roomID); err != nil { if err = d.FederationJoinedHosts.DeleteJoinedHostsForRoom(ctx, txn, roomID); err != nil {
return fmt.Errorf("d.FederationJoinedHosts.DeleteJoinedHosts: %w", err) return fmt.Errorf("d.FederationJoinedHosts.DeleteJoinedHosts: %w", err)