hapi-paypal
Advanced tools
Comparing version 0.0.51 to 0.0.52
@@ -243,4 +243,5 @@ "use strict"; | ||
try { | ||
this.webhookEvents = yield this.getWebhookEventTypes(); | ||
const accountWebHooks = yield this.getAccountWebhooks(); | ||
const w = yield Promise.all([this.getWebhookEventTypes(), this.getAccountWebhooks()]); | ||
this.webhookEvents = w[0]; | ||
const accountWebHooks = w[1]; | ||
this.webhook = accountWebHooks.filter((hook) => hook.url === webhook.url)[0]; | ||
@@ -247,0 +248,0 @@ this.webhook = !this.webhook ? yield this.createWebhook(webhook) : yield this.replaceWebhook(webhook); |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.51", | ||
"version": "0.0.52", | ||
"description": "A hapi plugin to interface with PayPal Rest API's and webhooks.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
62673
692