From 321836735bfea7272992365ce578571ef1fbf334 Mon Sep 17 00:00:00 2001 From: filou Date: Tue, 26 Nov 2024 20:51:37 +0100 Subject: [PATCH] [Poke] Fix broken workspace scrub Description --- Fixes issue from this [thread](https://dust4ai.slack.com/archives/C05F84CFP0E/p1732636239732379) The special space 'conversations' was not listed for deletion Risks --- na Deploy --- front --- front/poke/temporal/activities.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/poke/temporal/activities.ts b/front/poke/temporal/activities.ts index 6a72460df96b..2c1a451f0546 100644 --- a/front/poke/temporal/activities.ts +++ b/front/poke/temporal/activities.ts @@ -150,7 +150,7 @@ export async function scrubSpaceActivity({ }); } - hardDeleteLogger.info({ space: space.sId }, "Deleting space"); + hardDeleteLogger.info({ space: space.sId, workspaceId }, "Deleting space"); await hardDeleteSpace(auth, space); } @@ -561,7 +561,9 @@ export async function deleteSpacesActivity({ workspaceId: string; }) { const auth = await Authenticator.internalAdminForWorkspace(workspaceId); - const spaces = await SpaceResource.listWorkspaceSpaces(auth); + const spaces = await SpaceResource.listWorkspaceSpaces(auth, { + includeConversationsSpace: true, + }); for (const space of spaces) { await scrubSpaceActivity({