mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-20 22:52:39 +02:00
feat: add pdftopdf and wordtopdf functionality
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { PostHog } from 'posthog-node';
|
||||
const ph_project_api_key = process.env.PH_PROJECT_API_KEY;
|
||||
const client = new PostHog(ph_project_api_key);
|
||||
export default async function encryptedpdf(request) {
|
||||
const email = request.params.email;
|
||||
if (client) {
|
||||
client?.capture({
|
||||
distinctId: email,
|
||||
event: 'encrypted_pdf_error',
|
||||
properties: { response_code: 200 },
|
||||
});
|
||||
}
|
||||
return { message: 'success' };
|
||||
}
|
||||
+1
-1
@@ -319,7 +319,7 @@ async function PDF(o) {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
throw (console.log('Err ', e), e);
|
||||
throw (console.log('Err in signpdf', e), e);
|
||||
}
|
||||
}
|
||||
export default PDF;
|
||||
|
||||
Reference in New Issue
Block a user