From 05631c5c8c8b8182f303cb9e479e08a6316d263f Mon Sep 17 00:00:00 2001 From: Arpi Date: Tue, 7 May 2024 18:08:02 +0300 Subject: [PATCH] use PostLiquidityWithdrawalInput --- .../app/lib/webhooks.server.ts | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/localenv/mock-account-servicing-entity/app/lib/webhooks.server.ts b/localenv/mock-account-servicing-entity/app/lib/webhooks.server.ts index d8d23c7a4e..a02b250f9f 100644 --- a/localenv/mock-account-servicing-entity/app/lib/webhooks.server.ts +++ b/localenv/mock-account-servicing-entity/app/lib/webhooks.server.ts @@ -221,16 +221,22 @@ export async function handleWalletAddressWebMonetization(wh: Webhook) { return await apolloClient.mutate({ mutation: gql` - mutation PostLiquidityWithdrawal ($withdrawalId: String!) { - postLiquidityWithdrawal($withdrawalId: String!) { - code - success - message - error + mutation PostLiquidityWithdrawal( + $input: PostLiquidityWithdrawalInput! + ) { + postLiquidityWithdrawal(input: $input) { + code + success + message + error + } } - }`, + `, variables: { - withdrawalId: withdrawalId + input: { + withdrawalId: withdrawalId, + idempotencyKey: uuid() + } } }) } catch (err) {