Fix types on API LiteUser
This commit is contained in:
parent
fa86f5e89a
commit
11f6a57c54
|
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user