Set draft to false when creating orders in submit-order API
This commit is contained in:
parent
8a8cfcd0f1
commit
45588fd30d
@ -18,6 +18,7 @@ export async function POST(request: Request) {
|
||||
|
||||
const order = await payload.create({
|
||||
collection: "orders",
|
||||
draft: false,
|
||||
data: {
|
||||
items: items.map(
|
||||
(item: { product: string; quantity: number; priceAtOrder: number }) => ({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user