viraxslot / online-school-app

Backend for testing purposes.
0 stars 0 forks source link

500 error PATCH incorrect response message when title has already exist #44

Open NasDmit opened 2 years ago

NasDmit commented 2 years ago
  1. Authorize as a teacher.
  2. Send GET request to http://qa-school-test.quantori.academy/api/v1/courses. Choose one of the existed course title.
  3. Send PATCH request to http://qa-school-test.quantori.academy/api/v1/courses with existed course title.

Actual behavior { "errors": "Unable to change course: SequelizeUniqueConstraintError: Validation error" }

Expected behavior { "errors": "title should be unique" }

Screenshots image

viraxslot commented 2 years ago

@NasDmit could you please check what was sent as a value for the id field? It's not obvious. You can use Postman console for that.