From f3f3591e34332657f3701b4c737a09fcdd2ea8a5 Mon Sep 17 00:00:00 2001 From: Mike Johnston Date: Thu, 19 Mar 2026 16:46:14 -0400 Subject: [PATCH] fix: add sharesOutstanding field to hedge fund creation --- src/app/api/admin/funds/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/admin/funds/route.ts b/src/app/api/admin/funds/route.ts index 59b3514..8d2fb39 100644 --- a/src/app/api/admin/funds/route.ts +++ b/src/app/api/admin/funds/route.ts @@ -66,7 +66,7 @@ export async function POST(req: NextRequest) { }) return tx.hedgeFund.create({ - data: { name, slug, userId: shadowUser.id }, + data: { name, slug, userId: shadowUser.id, sharesOutstanding: initialBalance }, include: { user: { select: { balance: true } }, managers: true }, }) })