-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: develop
Are you sure you want to change the base?
Conversation
server/routes/ticketAlloc.js
Outdated
const express = require('express'); | ||
const router = express.Router(); | ||
const co = require('co'); | ||
const consts = require('../utils/consts'); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove please...
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({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove...
server/routes/ticketAlloc.js
Outdated
const eventId = req.params.eventId; | ||
const roundId = uuid() | ||
const round = new Round({ | ||
_id: roundId, |
There was a problem hiding this comment.
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?
No description provided.