diff --git a/queries/cdmq/delete-run.js b/queries/cdmq/delete-run.js index bd1ddfe0..e41aa8a0 100644 --- a/queries/cdmq/delete-run.js +++ b/queries/cdmq/delete-run.js @@ -10,6 +10,7 @@ program async function waitFor(docTypes) { var numAttempts = 1; var maxAttempts = 10; + var remainingDocTypes = docTypes; while (numAttempts <= maxAttempts && docTypes.length > 0) { let promise = new Promise((resolve, reject) => { setTimeout(() => resolve('done!'), 2000);