From 1b3ce90c930caf75f6bf0ae23e4a7e6425b4b5cf Mon Sep 17 00:00:00 2001 From: Moiz Adnan <67912355+MoizAdnan@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:52:49 +0500 Subject: [PATCH] chore: Update project removal logic to ignore resources JSON (#10446) --- packages/server-core/src/projects/project/project.hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server-core/src/projects/project/project.hooks.ts b/packages/server-core/src/projects/project/project.hooks.ts index 611cb99c7b..81138473ea 100644 --- a/packages/server-core/src/projects/project/project.hooks.ts +++ b/packages/server-core/src/projects/project/project.hooks.ts @@ -506,7 +506,7 @@ const removeStaticResourcesFromProject = async (context: HookContext { - await context.app.service(staticResourcePath).remove(staticResource.id) + await context.app.service(staticResourcePath).remove(staticResource.id, { ignoreResourcesJson: true }) }) }