Skip to content

Commit

Permalink
feat(payments): remove search data when uninstalling connector (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Dec 11, 2023
1 parent f9bf5e1 commit a199205
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ func (l *ConnectorsManager[ConnectorConfig]) Uninstall(ctx context.Context, conn
return newStorageError(err, "uninstalling connector")
}

if l.publisher != nil {
err = l.publisher.Publish(events.TopicPayments,
publish.NewMessage(ctx, messages.NewEventResetConnector(connectorID)))
if err != nil {
l.logger(ctx).Errorf("Publishing message: %w", err)
}
}

l.mu.Lock()
delete(l.connectors, connectorID.String())
l.mu.Unlock()
Expand Down

1 comment on commit a199205

@vercel
Copy link

@vercel vercel bot commented on a199205 Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.