Team-Project-Zeus / Backend

0 stars 0 forks source link

availability wrong saved. #19

Closed redouan778 closed 4 years ago

redouan778 commented 4 years ago

Reported By: Redouan Sellami In version: 3.00

Describe the bug the availability slots are 30min each one. So if you indicate that you are available from 10:00 till 11:00 those are 2-slots. If you save it to your database it supposed to be saving two records for example:

id = 1, name= xxx, title =xxx, start_time= 10:00, end_time = 10:30. id= 2, name= xxx, title =xxx, start_time= 10:30, end_time = 11:00.

BUT!!!! this is not what happens i will show you what is saved in the database:

id = 1, name= xxx, title =xxx, start_time= 10:00, end_time = 11:00.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'postman'.
  2. Click on the left bar on the collection "Project Zeus Server (77.162.207.35)" .
  3. Click on the folder "Appointment CRUD" and click on "add appointment".
  4. See error

Expected behavior If you save it to your database it supposed to be saving two records for example:

id = 1, name= xxx, title =xxx, start_time= 10:00, end_time = 10:30. id= 2, name= xxx, title =xxx, start_time= 10:30, end_time = 11:00.

Screenshots Schermopname (147)

redouan778 commented 4 years ago

The bug is solved by an extra sensitive check