-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
As seen in the image below, when contacting Admin, we have the below error message in this page:
view own product
To navigate to this page, you have to follow the below:
- Login ( You must be logged in, because you have to view your own ad)
- Navigate to your dashboard
- Click on an add that is blocked (if you don't have any, go to the backend, and block one of your ad)
- Then the page comes up to contact Admin as below:
- click on contact admin, which brings out a modal where you can type and submit, then the error comes up.
This should be fixed and confirm with an image that:
- The message was successfully sent.
- The send message can be viewed from the admin page.
For context:
2025-10-12T21:35:11.834499267Z Error Route: Error: Bind parameters must not contain undefined. To pass SQL NULL specify JS null
2025-10-12T21:35:11.834509251Z at PromisePool.execute (/app/node_modules/mysql2/lib/promise/pool.js:54:22)
2025-10-12T21:35:11.834549029Z at ReportAd.newRemark (file:///app/models/ReportAd.js:50:29)
2025-10-12T21:35:11.834554640Z at userRemark (file:///app/controller/ad.controller.js:580:48)
2025-10-12T21:35:11.834560590Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2025-10-12T21:35:11.834565969Z code: undefined,
2025-10-12T21:35:11.834577115Z errno: undefined,
2025-10-12T21:35:11.834582530Z sql: undefined,
2025-10-12T21:35:11.834587543Z sqlState: undefined,
2025-10-12T21:35:11.834592868Z sqlMessage: undefined
2025-10-12T21:35:11.834598088Z }
In fixing this:
- Please add an SMS notification for user when an update is made, to let them know and swing into Action.