hatchways / team-hulk

0 stars 0 forks source link

Questions #51

Closed hassanfarahani closed 3 years ago

hassanfarahani commented 3 years ago

In this PR, I created a route for question (in the backend) so as soon as the user go to the interview room, based on the difficulty level of the room, a question of the same difficulty level will be fetched from the back-end and displays on the interview room. Worth to mention that each time the user enters the interview room, a question that user has never seen before, will be fetched from the back-end. To implement his feature, a new field called 'questionIds' has been added to the user model so each time a user see a question in the interview room, the id of that question will be stored in the 'questionIds' field; and then considering these ids, we can send the appropriate question (non-repetitive question) to the user next time.