Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jvpessoa10
Copy link

No description provided.

Copy link
Member

@CarlosRodrigo CarlosRodrigo left a 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/repositories/meetingsRepository/index.js Outdated Show resolved Hide resolved
src/router/meetingsRouter/index.js Outdated Show resolved Hide resolved
src/controllers/meetingsController.js Outdated Show resolved Hide resolved
Comment on lines 26 to 31
// 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)
// }
Copy link
Member

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
Copy link
Contributor

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)

Copy link
Contributor

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({
Copy link
Contributor

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?

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.

None yet

3 participants