Skip to content

Commit

Permalink
Fix issue with failure in pagination not allowing retry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Rutland committed Nov 5, 2020
1 parent 9ef1039 commit 0096392
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/datapacksjob.js
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,13 @@ DataPacksJob.prototype.deployPack = async function(inputMap) {
var objectKey = self.vlocity.datapacksutils.getBulkJobObjectKey(dataPack.VlocityDataPackType);
var dataPackKey = JSON.stringify(dataPack.VlocityDataPackKey);

if (dataPack.VlocityDataPackRelationshipType != 'Pagination') {
if (dataPack.VlocityDataPackRelationshipType == 'Pagination') {
let paginationParentKey = dataPack.VlocityDataPackKey.substring(0, dataPack.VlocityDataPackKey.indexOf('|'));

if (dataPack.VlocityDataPackStatus == 'Error') {
jobInfo.currentStatus[paginationParentKey] = dataPack.VlocityDataPackStatus;
}
} else {
jobInfo.currentStatus[dataPack.VlocityDataPackKey] = dataPack.VlocityDataPackStatus;
}

Expand Down

0 comments on commit 0096392

Please sign in to comment.