Skip to content

Commit

Permalink
fixup! ✨(app-desk) integrate team endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoLC committed Feb 19, 2024
1 parent 7362f94 commit 08ce5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/apps/desk/src/features/teams/api/useTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export const getTeam = async ({ id }: TeamParams): Promise<TeamResponse> => {
return response.json() as Promise<TeamResponse>;
};

export const KEY_LIST_TEAM = 'team';
export const KEY_TEAM = 'team';

export function useTeam(
param: TeamParams,
queryConfig?: UseQueryOptions<TeamResponse, TeamResponseError, TeamResponse>,
) {
return useQuery<TeamResponse, TeamResponseError, TeamResponse>({
queryKey: [KEY_LIST_TEAM, param],
queryKey: [KEY_TEAM, param],
queryFn: () => getTeam(param),
...queryConfig,
});
Expand Down

0 comments on commit 08ce5a6

Please sign in to comment.