From a6d2cfc4d90f364e0df4e4b23fad4f66cf007190 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 3 Mar 2025 13:34:00 +0000 Subject: [PATCH] Undo --- packages/server/src/api/controllers/application.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index 3a370564e7..a3b08b5ff9 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -654,7 +654,9 @@ async function destroyApp(ctx: UserCtx) { await quotas.removeApp() await events.app.deleted(app) - await deleteAppFiles(appId) + if (!env.isTest()) { + await deleteAppFiles(appId) + } await removeAppFromUserRoles(ctx, appId) await cache.app.invalidateAppMetadata(devAppId)