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

added basic round route and get/post round #152

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

markfridman
Copy link
Collaborator

No description provided.

const express = require('express');
const router = express.Router();
const co = require('co');
const consts = require('../utils/consts');
Copy link
Collaborator

Choose a reason for hiding this comment

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

consts not in used... remove it




// router.post('/events/change', co.wrap(function*(req, res) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove please...

// return res.status(403).json([{"error": "Action is not allowed - User doesn't have admin permissions"}]);
// }

// const round = new Round({
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove...

const eventId = req.params.eventId;
const roundId = uuid()
const round = new Round({
_id: roundId,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have _id built-in in mongo, why do we need it?

@mbenarie mbenarie removed their request for review October 7, 2019 07:52
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