track create user

This commit is contained in:
mantikoros 2022-06-16 10:45:44 -05:00
parent a15d39110b
commit c2945f11b7

View File

@ -15,6 +15,7 @@ import {
} from '../../common/util/clean-username'
import { sendWelcomeEmail } from './emails'
import { isWhitelisted } from '../../common/envs/constants'
import { track } from './analytics'
export const createUser = functions
.runWith({ minInstances: 1, secrets: ['MAILGUN_KEY'] })
@ -86,6 +87,8 @@ export const createUser = functions
await sendWelcomeEmail(user, privateUser)
await track(userId, 'create user', { username }, { ip: ipAddress })
return { status: 'success', user }
})