Skip to content

Commit

Permalink
fix: re-aligning both webhook event type enum definitions (#2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoblersTune authored Oct 12, 2023
1 parent 7cd4af0 commit 07cff89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export enum EventType {
OutgoingPaymentCompleted = 'outgoing_payment.completed',
OutgoingPaymentFailed = 'outgoing_payment.failed',
PaymentPointerNotFound = 'payment_pointer.not_found',
LiquidityAsset = 'asset.liquidity_low',
LiquidityPeer = 'peer.liquidity_low'
AssetLiquidityLow = 'asset.liquidity_low',
PeerLiquidityLow = 'peer.liquidity_low'
}

export interface WebHook {
Expand Down
4 changes: 2 additions & 2 deletions localenv/mock-account-servicing-entity/app/routes/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export async function action({ request }: ActionArgs) {
case EventType.PaymentPointerNotFound:
await handlePaymentPointerNotFound(wh)
break
case EventType.LiquidityAsset:
case EventType.LiquidityPeer:
case EventType.AssetLiquidityLow:
case EventType.PeerLiquidityLow:
await handleLowLiquidity(wh)
break
default:
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/app/shared/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export enum WebhookEventType {
OutgoingPaymentCreated = 'outgoing_payment.created',
OutgoingPaymentCompleted = 'outgoing_payment.completed',
OutgoingPaymentFailed = 'outgoing_payment.failed',
PaymentPointerNotFound = 'payment_pointer.not_found',
AssetLiquidityLow = 'asset.liquidity_low',
PeerLiquidityLow = 'peer.liquidity_low'
}

0 comments on commit 07cff89

Please sign in to comment.