Skip to content

Issue #71: Create logic to handle meetings creation#85

Open
jvpessoa10 wants to merge 1 commit into
devfrom
issue_71
Open

Issue #71: Create logic to handle meetings creation#85
jvpessoa10 wants to merge 1 commit into
devfrom
issue_71

Conversation

@jvpessoa10
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
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.

Comment thread src/repositories/meetingsRepository/index.js Outdated
Comment thread src/router/meetingsRouter/index.js
Comment thread src/controllers/meetingsController.js Outdated
Comment thread src/services/MeetingsService.js Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants