Skip to content

Commit

Permalink
Fix user portfolio calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec committed Sep 24, 2024
1 parent 28d27c6 commit 20718e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/shared/src/get-user-portfolio-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const getUserPortfolioInternal = async (userId: string) => {
data->'pool' as pool,
mechanism,
data->'totalShares' as total_shares,
(data->>'p')::numeric as p
(data->>'p')::numeric as p,
token
from contracts where id in ($1:list)
`,
[betContractIds],
Expand Down

0 comments on commit 20718e8

Please sign in to comment.