fix: add sharesOutstanding field to hedge fund creation
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s
This commit is contained in:
@@ -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 },
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user