Skip to content

added basic round route and get/post round#152

Open
markfridman wants to merge 5 commits into
developfrom
feature/addRoundRoute
Open

added basic round route and get/post round#152
markfridman wants to merge 5 commits into
developfrom
feature/addRoundRoute

Conversation

@markfridman
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread server/routes/ticketAlloc.js Outdated
const express = require('express');
const router = express.Router();
const co = require('co');
const consts = require('../utils/consts');
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove please...

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

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

Choose a reason for hiding this comment

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

remove...

Comment thread server/routes/ticketAlloc.js Outdated
const eventId = req.params.eventId;
const roundId = uuid()
const round = new Round({
_id: roundId,
Copy link
Copy Markdown
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