Merge pull request #887 from Infisical/signup-secret-tagging

Update signup secret distinction/tagging for better telemetry
This commit is contained in:
vmatsiiako
2023-08-23 19:23:44 -07:00
committed by GitHub
5 changed files with 21 additions and 7 deletions
@@ -234,6 +234,9 @@ export const batchSecrets = async (req: Request, res: Response) => {
$inc: {
version: 1
},
$unset: {
'metadata.source': true as true
},
...u,
_id: new Types.ObjectId(u._id)
}
@@ -966,6 +969,7 @@ export const getSecrets = async (req: Request, res: Response) => {
);
const postHogClient = await TelemetryService.getPostHogClient();
if (postHogClient) {
postHogClient.capture({
event: "secrets pulled",