Skip to content

Commit 0014218

Browse files
committed
incorrect type cast
1 parent 51cc9a3 commit 0014218

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • apps/sim/app/api/organizations/[id]/members

apps/sim/app/api/organizations/[id]/members/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ export const GET = withRouteHandler(
152152

153153
const membersWithUsage = base.map((row) => ({
154154
...row,
155-
currentPeriodCost:
156-
Number(row.currentPeriodCost ?? 0) + (usageByUser.get(row.userId) ?? 0),
155+
currentPeriodCost: (
156+
Number(row.currentPeriodCost ?? 0) + (usageByUser.get(row.userId) ?? 0)
157+
).toString(),
157158
billingPeriodStart,
158159
billingPeriodEnd,
159160
}))

0 commit comments

Comments
 (0)