UNPKG

@amplience/dc-cli

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