mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
[web] Add deletedReason parameter to project deletion methods (#32221)
* [web] Add deletedReason parameter to project deletion methods * revert sinon.match.any in ProjectDuplicator negative assertion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> GitOrigin-RevId: d1595eefe0e36150231ee9646fe5eba0786fd1f5
This commit is contained in:
committed by
Copybot
parent
c9ba2ac025
commit
6486ef3e1e
@@ -1,5 +1,6 @@
|
||||
import minimist from 'minimist'
|
||||
import ProjectDeleter from '../app/src/Features/Project/ProjectDeleter.mjs'
|
||||
import { DeletedProjectReasons } from '../app/src/Features/Project/DeletedProjectReasons.mjs'
|
||||
import { scriptRunner } from './lib/ScriptRunner.mjs'
|
||||
|
||||
async function main() {
|
||||
@@ -11,7 +12,9 @@ async function main() {
|
||||
}
|
||||
console.log(`Soft deleting project ${projectId}`)
|
||||
// soft delete, project will be permanently deleted after 90 days
|
||||
await ProjectDeleter.promises.deleteProject(projectId)
|
||||
await ProjectDeleter.promises.deleteProject(projectId, {
|
||||
deletedReason: DeletedProjectReasons.SCRIPT,
|
||||
})
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user