690320:2126 UUID agian by Claude Sonnet #02
Build and Deploy / deploy (push) Failing after 4m27s
Build and Deploy / deploy (push) Failing after 4m27s
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
UpdateOrganizationDto,
|
||||
SearchOrganizationDto,
|
||||
} from "@/types/dto/organization/organization.dto";
|
||||
import { Organization } from "@/types/organization";
|
||||
|
||||
type ApiEnvelope<T> = {
|
||||
data?: ApiEnvelope<T> | T;
|
||||
@@ -36,8 +37,11 @@ export const organizationService = {
|
||||
* Get all organizations (supports filtering by projectId)
|
||||
* GET /organizations?projectId=1
|
||||
*/
|
||||
getAll: async (params?: SearchOrganizationDto) => {
|
||||
const response = await apiClient.get("/organizations", { params });
|
||||
getAll: async (params?: SearchOrganizationDto): Promise<Organization[]> => {
|
||||
const response = await apiClient.get<ApiEnvelope<Organization[]> | Organization[]>(
|
||||
"/organizations",
|
||||
{ params }
|
||||
);
|
||||
return unwrapArrayResponse(response.data);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user