Skip to content

Commit

Permalink
Update src/controllers/order/create.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Zalko <[email protected]>
  • Loading branch information
tuturd and Zalk0 authored Sep 10, 2024
1 parent de4b4d9 commit a1f2d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/order/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const create = async (req: BodyRequest<Body>, res: Response) => {
})
.reduce(
(acc, item) => {
if (item.item.category.needsPreparation === true) {
if (item.item.category.needsPreparation) {
acc[0].push(item);
} else {
acc[1].push(item);
Expand Down

0 comments on commit a1f2d1c

Please sign in to comment.