diff --git a/services/web/scripts/cleanup_incorrectly_expired_projects.js b/services/web/scripts/cleanup_incorrectly_expired_projects.js index fbfba6a722..fa08730d2c 100644 --- a/services/web/scripts/cleanup_incorrectly_expired_projects.js +++ b/services/web/scripts/cleanup_incorrectly_expired_projects.js @@ -25,9 +25,14 @@ waitForDb() }) async function main() { - await batchedUpdate('deletedProjects', {}, processDeletedProjects, { - 'deleterData.deletedProjectId': 1, - }) + await batchedUpdate( + 'deletedProjects', + { project: null }, + processDeletedProjects, + { + 'deleterData.deletedProjectId': 1, + } + ) if (DRY_RUN) { console.log( '\nThis was a dry run. Re-run with DRY_RUN=false to delete broken refs and projects.'