hapi-paypal
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -132,4 +132,4 @@ "use strict"; | ||
const accountWebHooks = yield this.getAccountWebhooks(); | ||
this.webhook = accountWebHooks.filter((hook) => hook.url === this.webhook.url)[0]; | ||
if (!this.webhook) { | ||
this.webhook = accountWebHooks.filter((hook) => hook.url === this.webhook.url)[0] || this.webhook; | ||
if (!this.webhook.id) { | ||
this.webhook = yield this.createWebhook(); | ||
@@ -136,0 +136,0 @@ } |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"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
21747