pattern
pattern copied to clipboard
handleTransactionsWebhook.js missing case in switch statement
Hi, I believe the switch statement in handleTransactionsWebhook.js should include "TRANSACTIONS_REMOVED". Thanks!
@emagaram thanks for the report! I believe the current switch statement is correct -- listening for the SYNC_UPDATES_AVAILABLE webhook effectively replaces the need to listen for TRANSACTIONS_REMOVED, as any removed transactions will be reported via SYNC_UPDATES_AVAILABLE.
That makes sense, but won't it log "unhandled webhook type received"?
@emagaram hmm -- yes, I suppose it will!