There is an issue when creating a second user's purchase document.
example, when I purchase a course, the first purchase document is created successfully. However, when I try to purchase another course, the second purchase does not go through, and no document is created.
The problem lies in either localhost:3000/user/course/purchase or the schema.
I’ve spent a lot of time debugging it, but I can’t resolve it.
Please try to help fix it if you can.
There is an issue when creating a second user's purchase document.
example, when I purchase a course, the first purchase document is created successfully. However, when I try to purchase another course, the second purchase does not go through, and no document is created.
The problem lies in either localhost:3000/user/course/purchase or the schema.
I’ve spent a lot of time debugging it, but I can’t resolve it.
Please try to help fix it if you can.