(email: string, accountId: string)
| 36 | }; |
| 37 | |
| 38 | export const createAccountEvent = async (email: string, accountId: string) => { |
| 39 | if (process.env.NODE_ENV === 'test') { |
| 40 | return; |
| 41 | } |
| 42 | try { |
| 43 | client?.track(email, { |
| 44 | name: 'Account created', |
| 45 | data: { |
| 46 | accountId, |
| 47 | }, |
| 48 | }); |
| 49 | } catch (e) { |
| 50 | console.error('failed to identify account creation'); |
| 51 | } |
| 52 | }; |
no test coverage detected