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