Fix that thing again
This commit is contained in:
parent
c52f4b95f1
commit
73408a1beb
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue