0

Answer:

in this line:

https://github.com/basir/next-tailwind-amazona/blob/main/pages/order/%5Bid%5D.js#L220

we don’t save slug in the db.

in this line:

https://github.com/basir/next-tailwind-amazona/blob/main/models/Order.js#L8

add

slug: { type: String, required: true },

then restart project to fix the issue.

Basir Asked question September 21, 2022