Merge pull request #2333 from Infisical/daniel/secret-change-emails

Feat: Email notification on secret change requests
This commit is contained in:
Daniel Hougaard
2024-08-26 21:50:30 +04:00
committed by GitHub
10 changed files with 171 additions and 18 deletions
@@ -9,7 +9,15 @@ export const useCreateSecretApprovalPolicy = () => {
const queryClient = useQueryClient();
return useMutation<{}, {}, TCreateSecretPolicyDTO>({
mutationFn: async ({ environment, workspaceId, approvals, approvers, secretPath, name, enforcementLevel }) => {
mutationFn: async ({
environment,
workspaceId,
approvals,
approvers,
secretPath,
name,
enforcementLevel
}) => {
const { data } = await apiRequest.post("/api/v1/secret-approvals", {
environment,
workspaceId,