mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 14:27:23 +00:00
16 lines
455 B
TypeScript
16 lines
455 B
TypeScript
import { useMutation } from "@tanstack/react-query";
|
|
|
|
import { apiRequest } from "@app/config/request";
|
|
|
|
import { TOrgAdminAccessProjectDTO } from "./types";
|
|
|
|
export const useOrgAdminAccessProject = () =>
|
|
useMutation({
|
|
mutationFn: async ({ projectId }: TOrgAdminAccessProjectDTO) => {
|
|
const { data } = await apiRequest.post(
|
|
`/api/v1/organization-admin/projects/${projectId}/grant-admin-access`
|
|
);
|
|
return data;
|
|
}
|
|
});
|