Fix types on API LiteUser

This commit is contained in:
Marshall Polaris 2022-06-25 18:20:10 -07:00
parent fa86f5e89a
commit 11f6a57c54

View File

@ -163,8 +163,20 @@ export type LiteUser = {
balance: number balance: number
totalDeposits: number totalDeposits: number
totalPnLCached: number
creatorVolumeCached: number profitCached: {
daily: number
weekly: number
monthly: number
allTime: number
}
creatorVolumeCached: {
daily: number
weekly: number
monthly: number
allTime: number
}
} }
export function toLiteUser(user: User): LiteUser { export function toLiteUser(user: User): LiteUser {
@ -181,7 +193,7 @@ export function toLiteUser(user: User): LiteUser {
discordHandle, discordHandle,
balance, balance,
totalDeposits, totalDeposits,
totalPnLCached, profitCached,
creatorVolumeCached, creatorVolumeCached,
} = user } = user
@ -199,7 +211,7 @@ export function toLiteUser(user: User): LiteUser {
discordHandle, discordHandle,
balance, balance,
totalDeposits, totalDeposits,
totalPnLCached, profitCached,
creatorVolumeCached, creatorVolumeCached,
}) })
} }