diff --git a/apps/webservice/src/app/[workspaceSlug]/systems/[systemSlug]/deployments/[deploymentSlug]/releases/[versionId]/FlowPolicyNode.tsx b/apps/webservice/src/app/[workspaceSlug]/systems/[systemSlug]/deployments/[deploymentSlug]/releases/[versionId]/FlowPolicyNode.tsx index 9f37e975..f3f787e5 100644 --- a/apps/webservice/src/app/[workspaceSlug]/systems/[systemSlug]/deployments/[deploymentSlug]/releases/[versionId]/FlowPolicyNode.tsx +++ b/apps/webservice/src/app/[workspaceSlug]/systems/[systemSlug]/deployments/[deploymentSlug]/releases/[versionId]/FlowPolicyNode.tsx @@ -37,8 +37,9 @@ import { api } from "~/trpc/react"; const ApprovalDialog: React.FC<{ releaseId: string; policyId: string; + userId: string; children: React.ReactNode; -}> = ({ releaseId, policyId, children }) => { +}> = ({ releaseId, policyId, userId, children }) => { const approve = api.environment.policy.approval.approve.useMutation(); const rejected = api.environment.policy.approval.reject.useMutation(); const router = useRouter(); @@ -56,7 +57,7 @@ const ApprovalDialog: React.FC<{ { - await rejected.mutateAsync({ releaseId, policyId }); + await rejected.mutateAsync({ releaseId, policyId, userId }); router.refresh(); }} > @@ -64,7 +65,7 @@ const ApprovalDialog: React.FC<{ { - await approve.mutateAsync({ releaseId, policyId }); + await approve.mutateAsync({ releaseId, policyId, userId }); router.refresh(); }} > @@ -242,7 +243,11 @@ const ApprovalCheck: React.FC = ({ id, release }) => { } const status = approval.data?.status; return ( - +