Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
assortment of analytics changes (#267)
Browse files Browse the repository at this point in the history
* Change thread_id to UUID

* set session id in analytics event

* tweak analytics pipeline

* Update server/bleep/src/analytics.rs

* bump lockfile

* address clippy

* fix lint

* add types/uuid to green ci

---------

Co-authored-by: Louis Knight-Webb <[email protected]>
Co-authored-by: Gabriel Gordon-Hall <[email protected]>
  • Loading branch information
3 people authored Mar 17, 2023
1 parent d0cfc16 commit ff0749f
Show file tree
Hide file tree
Showing 5 changed files with 1,181 additions and 318 deletions.
3 changes: 2 additions & 1 deletion client/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { MouseEvent } from 'react';
import { v4 as uuidv4 } from 'uuid';
import langs from './langs.json';

export const copyToClipboard = (value: string) => {
Expand Down Expand Up @@ -133,5 +134,5 @@ export const arrayUnique = (array: any[], property: string) => {
};

export const generateUniqueId = (): string => {
return hashCode(new Date().toISOString()).toString();
return uuidv4();
};
Loading

0 comments on commit ff0749f

Please sign in to comment.