feat: purchase-plans update
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user