From 05b5dc758285a5f396f9973fa91bd5643dbbbc7a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 25 Aug 2022 08:14:22 -0700 Subject: return payments with user object --- lib/webhooks.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/webhooks.js') diff --git a/lib/webhooks.js b/lib/webhooks.js index c282ceea..2dbdf7c1 100644 --- a/lib/webhooks.js +++ b/lib/webhooks.js @@ -24,9 +24,7 @@ callWebhook = (invoice, payment) => { memo, confirmed, text, - webhook, - }) - .json() - .catch(console.log); + webhook + }).res().catch(console.log); } }; -- cgit v1.2.3