mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 07:27:43 +00:00
misc: add scoping to org-level
This commit is contained in:
@@ -22,7 +22,7 @@ export const userKeys = {
|
|||||||
getUser: ["user"] as const,
|
getUser: ["user"] as const,
|
||||||
getPrivateKey: ["user"] as const,
|
getPrivateKey: ["user"] as const,
|
||||||
userAction: ["user-action"] 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"],
|
getOrgUsers: (orgId: string) => [{ orgId }, "user"],
|
||||||
myIp: ["ip"] as const,
|
myIp: ["ip"] as const,
|
||||||
myAPIKeys: ["api-keys"] as const,
|
myAPIKeys: ["api-keys"] as const,
|
||||||
@@ -134,7 +134,7 @@ export const fetchOrgUsers = async (orgId: string) => {
|
|||||||
|
|
||||||
export const useGetUserProjectFavorites = (orgId: string) =>
|
export const useGetUserProjectFavorites = (orgId: string) =>
|
||||||
useQuery({
|
useQuery({
|
||||||
queryKey: userKeys.userProjectFavorites,
|
queryKey: userKeys.userProjectFavorites(orgId),
|
||||||
queryFn: () => fetchUserProjectFavorites(orgId)
|
queryFn: () => fetchUserProjectFavorites(orgId)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user