New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #71: Create logic to handle meetings creation #85
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the branch to dev.
Also, make sure you are using your personal email on commit :)
One last thing, if you could, please add some tests. You can find the integration ones under src/api and one for each route should be enough.
src/services/MeetingsService.js
Outdated
// for (let i = 0; i < meetings.length; i++) { | ||
// const filter = { meeting_id: meetings[i].id } | ||
// console.log(filter) | ||
// meetings[i]['sessions'] = await this.sessionsRepository | ||
// .newGetSession(filter) | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove commented code.
} | ||
getRoutes () { | ||
this.app.post('/', async (req, res) => { | ||
await this.genericRouter.execute(this.meetingsController.insertMeeting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code has changed and you now need to pass a mapper into the execute
function or use executeOld
function (which is discouraged because we want to deprecate that)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment for all of the functions in this router
@@ -0,0 +1,6 @@ | |||
const Joi = require('joi') | |||
|
|||
module.exports = Joi.object().keys({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add this teamsSchema now?
No description provided.