UNPKG

@amplience/dc-cli

Version:
16 lines (15 loc) 404 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWebhooksByIds = void 0; const getWebhooksByIds = async (hub, ids) => { const webhooks = []; for (const id of ids) { try { webhooks.push(await hub.related.webhooks.get(id)); } catch (e) { } } return webhooks; }; exports.getWebhooksByIds = getWebhooksByIds;