feat: purchase-plans update

This commit is contained in:
ivannoskov
2026-02-03 11:14:53 +03:00
parent 6b16bfa6e2
commit d87d6e2568
6 changed files with 179 additions and 35 deletions

View File

@@ -272,13 +272,13 @@ export const demoAwarePlacementsApi = {
}
return placementsApi.list(workspaceId, params);
},
get: async (workspaceId: string, placementId: string): Promise<Placement> => {
get: async (workspaceId: string, placementId: string, _projectId?: string): Promise<Placement> => {
if (isDemoWorkspace(workspaceId)) {
const placement = demoPlacements.find((p) => p.id === placementId);
if (!placement) throw new Error("Placement not found");
return placement;
}
return placementsApi.get(workspaceId, placementId);
return placementsApi.get(workspaceId, placementId, _projectId);
},
getByProject: async (workspaceId: string, projectId: string): Promise<Placement[]> => {
if (isDemoWorkspace(workspaceId)) {