Change .size to .length

This commit is contained in:
TAG-Epic
2020-08-23 22:35:35 +02:00
parent a897c313fb
commit 16777c30ca

View File

@@ -5,7 +5,7 @@ const request = require('request');
function dispatchEvent(scope, data) { function dispatchEvent(scope, data) {
let webhooks = config.webhooks; let webhooks = config.webhooks;
if (webhooks === undefined || webhooks.size === 0) return; if (webhooks === undefined || webhooks.length === 0) return;
logger.debug("Dispatching webhooks"); logger.debug("Dispatching webhooks");
webhooks.forEach(webhook => { webhooks.forEach(webhook => {
let webhookURL = webhook.url; let webhookURL = webhook.url;