Skip to content

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.

3 participants