fix: add sharesOutstanding field to hedge fund creation
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s

This commit is contained in:
2026-03-19 16:46:14 -04:00
parent 422d85e97e
commit f3f3591e34
+1 -1
View File
@@ -66,7 +66,7 @@ export async function POST(req: NextRequest) {
}) })
return tx.hedgeFund.create({ 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 }, include: { user: { select: { balance: true } }, managers: true },
}) })
}) })