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 const SUS_STARTING_BALANCE = 10 // for sus users, i.e. multiple sign ups for same person
|
||||||
|
|
||||||
export type PrivateUser = {
|
export type PrivateUser = {
|
||||||
|
id: string // same as User.id
|
||||||
|
username: string // denormalized from User
|
||||||
|
|
||||||
email?: string
|
email?: string
|
||||||
unsubscribedFromResolutionEmails?: boolean
|
unsubscribedFromResolutionEmails?: boolean
|
||||||
initialDeviceToken?: string
|
initialDeviceToken?: string
|
||||||
|
|
|
@ -64,6 +64,8 @@ export const createUser = functions
|
||||||
console.log('created user', username, 'firebase id:', userId)
|
console.log('created user', username, 'firebase id:', userId)
|
||||||
|
|
||||||
const privateUser: PrivateUser = {
|
const privateUser: PrivateUser = {
|
||||||
|
id: userId,
|
||||||
|
username,
|
||||||
email,
|
email,
|
||||||
initialIpAddress: ipAddress,
|
initialIpAddress: ipAddress,
|
||||||
initialDeviceToken: deviceToken,
|
initialDeviceToken: deviceToken,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user