Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbuechele committed Jul 7, 2024
1 parent 3ef7430 commit 32b4cfd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/routes/kultCash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,13 @@ app.post('/log', async (c) => {
payment: mapPayment(order.paymentMethod),
items: {
createMany: {
data:
order!.cartItems
.filter(({product}) => product != undefined)
.map(({amount, product}) => ({
amount,
name: product!.name, // not sure why product is nullable
perUnitPrice: product!.price,
})) ?? [],
data: order.cartItems
.filter(({product}) => product != undefined)
.map(({amount, product}) => ({
amount,
name: product!.name, // not sure why product is nullable
perUnitPrice: product!.price,
})),
},
},
},
Expand Down

0 comments on commit 32b4cfd

Please sign in to comment.