Skip to content

Commit

Permalink
handle PeerEvent.Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Nov 26, 2024
1 parent 6bee506 commit bd1d9e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api-sync/source/listeners/peers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class Peers extends AbstractListener<Contracts.P2P.Peer, Models.Peer> {
protected getEventMapping(): ListenerEventMapping {
return {
[Events.PeerEvent.Added]: ListenerEvent.OnAdded,
[Events.PeerEvent.Updated]: ListenerEvent.OnAdded, // upsert
[Events.PeerEvent.Removed]: ListenerEvent.OnRemoved,
};
}
Expand Down

0 comments on commit bd1d9e3

Please sign in to comment.