include user properties in private user

This commit is contained in:
mantikoros 2022-01-18 16:53:07 -06:00
parent 9d86c37e53
commit 3fad944d81
2 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,9 @@ export const STARTING_BALANCE = 1000
export const SUS_STARTING_BALANCE = 10 // for sus users, i.e. multiple sign ups for same person
export type PrivateUser = {
id: string // same as User.id
username: string // denormalized from User
email?: string
unsubscribedFromResolutionEmails?: boolean
initialDeviceToken?: string

View File

@ -64,6 +64,8 @@ export const createUser = functions
console.log('created user', username, 'firebase id:', userId)
const privateUser: PrivateUser = {
id: userId,
username,
email,
initialIpAddress: ipAddress,
initialDeviceToken: deviceToken,