fix(api,web): resolve RLS context SQL error, workspace guard crash, and projects response unwrapping (#531)

Co-authored-by: Jason Woltje <[email protected]>
Co-committed-by: Jason Woltje <[email protected]>
This commit is contained in:
2026-02-27 04:18:35 +00:00
committed by jason.woltje
parent 21bf7e050f
commit e3cba37e8c
3 changed files with 13 additions and 9 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ export interface UpdateProjectDto {
* Fetch all projects for a workspace
*/
export async function fetchProjects(workspaceId?: string): Promise<Project[]> {
return apiGet<Project[]>("/api/projects", workspaceId);
const response = await apiGet<{ data: Project[]; meta?: unknown }>("/api/projects", workspaceId);
return response.data;
}
/**