mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
analytics for get document list updated
This commit is contained in:
@@ -68,7 +68,7 @@ export default async function getDocumentList(request, response) {
|
||||
if (request.posthog) {
|
||||
request.posthog?.capture({
|
||||
distinctId: parseUser.userId.email,
|
||||
event: 'api_get_document_list_by_status',
|
||||
event: `api_get_document_list_${docType}`,
|
||||
properties: { response_code: 200, doc_type: docType },
|
||||
});
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export default async function getDocumentList(request, response) {
|
||||
if (request.posthog) {
|
||||
request.posthog?.capture({
|
||||
distinctId: parseUser.userId.email,
|
||||
event: 'api_get_document_list_by_status',
|
||||
event: `api_get_document_list_${docType}`,
|
||||
properties: { response_code: 400, doc_type: docType },
|
||||
});
|
||||
}
|
||||
@@ -123,7 +123,7 @@ export default async function getDocumentList(request, response) {
|
||||
if (request.posthog) {
|
||||
request.posthog?.capture({
|
||||
distinctId: parseUser.userId.email,
|
||||
event: 'api_get_document_list_by_status',
|
||||
event: `api_get_document_list_${docType}`,
|
||||
properties: { response_code: 404, doc_type: docType },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user