Skip to content

Commit 14b4d10

Browse files
analytics for get document list updated
1 parent ff4879a commit 14b4d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/OpenSignServer/cloud/customRoute/v1/routes/getDocumentList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default async function getDocumentList(request, response) {
6868
if (request.posthog) {
6969
request.posthog?.capture({
7070
distinctId: parseUser.userId.email,
71-
event: 'api_get_document_list_by_status',
71+
event: `api_get_document_list_${docType}`,
7272
properties: { response_code: 200, doc_type: docType },
7373
});
7474
}
@@ -111,7 +111,7 @@ export default async function getDocumentList(request, response) {
111111
if (request.posthog) {
112112
request.posthog?.capture({
113113
distinctId: parseUser.userId.email,
114-
event: 'api_get_document_list_by_status',
114+
event: `api_get_document_list_${docType}`,
115115
properties: { response_code: 400, doc_type: docType },
116116
});
117117
}
@@ -123,7 +123,7 @@ export default async function getDocumentList(request, response) {
123123
if (request.posthog) {
124124
request.posthog?.capture({
125125
distinctId: parseUser.userId.email,
126-
event: 'api_get_document_list_by_status',
126+
event: `api_get_document_list_${docType}`,
127127
properties: { response_code: 404, doc_type: docType },
128128
});
129129
}

0 commit comments

Comments
 (0)