include user properties in private user
This commit is contained in:
parent
9d86c37e53
commit
3fad944d81
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user