added a check for signup events

This commit is contained in:
Vladyslav Matsiiako
2023-08-13 18:26:41 -07:00
parent 67a8211cb0
commit 83465dff2d
5 changed files with 11 additions and 5 deletions
+3 -2
View File
@@ -326,7 +326,8 @@ export const createSecretHelper = async ({
secretCommentCiphertext,
secretCommentIV,
secretCommentTag,
secretPath = "/"
secretPath = "/",
source
}: CreateSecretParams) => {
const secretBlindIndex = await generateSecretBlindIndexHelper({
secretName,
@@ -463,7 +464,7 @@ export const createSecretHelper = async ({
const postHogClient = await TelemetryService.getPostHogClient();
if (postHogClient) {
if (postHogClient && source !== "signup") {
postHogClient.capture({
event: "secrets added",
distinctId: await TelemetryService.getDistinctId({