fix: issue of encryptedpdf error api not working

This commit is contained in:
prafull-opensignlabs
2024-05-03 14:26:54 +05:30
parent b421c0f1a9
commit 68edecae18
@@ -1,6 +1,6 @@
import { PostHog } from 'posthog-node';
const ph_project_api_key = process.env.PH_PROJECT_API_KEY;
const client = new PostHog(ph_project_api_key);
const client = ph_project_api_key ? new PostHog(ph_project_api_key) : '';
export default async function encryptedpdf(request) {
const email = request.params.email;
if (client) {