mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #4805 from overleaf/em-cleanup-expired-projects
Limit cleanup script to expired projects GitOrigin-RevId: 49ea2c08cee92f027f21e3e8b07bf9491a9f089f
This commit is contained in:
parent
5679ba894b
commit
b2e6eaf936
1 changed files with 8 additions and 3 deletions
|
@ -25,9 +25,14 @@ waitForDb()
|
|||
})
|
||||
|
||||
async function main() {
|
||||
await batchedUpdate('deletedProjects', {}, processDeletedProjects, {
|
||||
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.'
|
||||
|
|
Loading…
Reference in a new issue