fix order of records for reasons
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m23s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m23s
This commit is contained in:
@@ -81,7 +81,7 @@ export async function POST(
|
||||
},
|
||||
}),
|
||||
prisma.trade.create({
|
||||
data: { userId: params.userId, type: 'ACCOUNT_OPEN', shares: 0, price: 0, total: STARTING_BALANCE, profit: STARTING_BALANCE },
|
||||
data: { userId: params.userId, type: 'ACCOUNT_OPEN', shares: 0, price: 0, total: STARTING_BALANCE, profit: STARTING_BALANCE, createdAt: new Date(Date.now() + 1000) },
|
||||
}),
|
||||
]
|
||||
: [
|
||||
|
||||
@@ -83,7 +83,7 @@ export async function POST(req: NextRequest) {
|
||||
},
|
||||
}),
|
||||
prisma.trade.create({
|
||||
data: { userId, type: 'ACCOUNT_OPEN', shares: 0, price: 0, total: STARTING_BALANCE, profit: STARTING_BALANCE },
|
||||
data: { userId, type: 'ACCOUNT_OPEN', shares: 0, price: 0, total: STARTING_BALANCE, profit: STARTING_BALANCE, createdAt: new Date(Date.now() + 1000) },
|
||||
}),
|
||||
]
|
||||
: [
|
||||
|
||||
Reference in New Issue
Block a user