Skip to content

Smita samanta patch 1#4

Open
smita-samanta wants to merge 2 commits into
TutorFast:masterfrom
smita-samanta:smita-samanta-patch-1
Open

Smita samanta patch 1#4
smita-samanta wants to merge 2 commits into
TutorFast:masterfrom
smita-samanta:smita-samanta-patch-1

Conversation

@smita-samanta
Copy link
Copy Markdown

Made changes to routes and index.js

Copy link
Copy Markdown
Member

@Alex-Aralis Alex-Aralis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will all need to be updated after changes to the Review model.

Comment thread src/index.js
// processed routes.
root.use('/test', testRouter);
root.use('/user', userRouter);
root.use('/user', reviewRouter);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to root.use('/review', reviewRouter);

Comment thread src/routes/review.js
.then(tutor => new Review({
tutor: tutor._id,
learner: learner._id,
$push: {userRating: {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need to push like this on model creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants