@amplience/dc-cli
Version:
Dynamic Content CLI Tool
16 lines (15 loc) • 404 B
JavaScript
;
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;