Skip to content

Commit

Permalink
poke delete: delete feature flags before workspace (#9676)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Dec 31, 2024
1 parent e108613 commit feb3737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions front/poke/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
AgentUserRelation,
GlobalAgentSettings,
} from "@app/lib/models/assistant/agent";
import { FeatureFlag } from "@app/lib/models/feature_flag";
import { Subscription } from "@app/lib/models/plan";
import {
DustAppSecret,
Expand Down Expand Up @@ -536,6 +537,11 @@ export async function deleteWorkspaceActivity({
workspaceId: workspace.id,
},
});
await FeatureFlag.destroy({
where: {
workspaceId: workspace.id,
},
});

hardDeleteLogger.info({ workspaceId }, "Deleting Workspace");

Expand Down

0 comments on commit feb3737

Please sign in to comment.