Skip to content

Commit

Permalink
misc: add scoping to org-level
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Jul 1, 2024
1 parent 1eb9ea9 commit c976a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/api/users/queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const userKeys = {
getUser: ["user"] as const,
getPrivateKey: ["user"] as const,
userAction: ["user-action"] as const,
userProjectFavorites: ["user-project-favorites"] as const,
userProjectFavorites: (orgId: string) => [{ orgId }, "user-project-favorites"] as const,
getOrgUsers: (orgId: string) => [{ orgId }, "user"],
myIp: ["ip"] as const,
myAPIKeys: ["api-keys"] as const,
Expand Down Expand Up @@ -134,7 +134,7 @@ export const fetchOrgUsers = async (orgId: string) => {

export const useGetUserProjectFavorites = (orgId: string) =>
useQuery({
queryKey: userKeys.userProjectFavorites,
queryKey: userKeys.userProjectFavorites(orgId),
queryFn: () => fetchUserProjectFavorites(orgId)
});

Expand Down

0 comments on commit c976a5c

Please sign in to comment.