Skip to content

Commit

Permalink
[Poke] Fix broken workspace scrub (#8925)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
philipperolet authored Nov 26, 2024
1 parent ed178ce commit b95d883
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions front/poke/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit b95d883

Please sign in to comment.