- Cleanup
This commit is contained in:
@@ -32,6 +32,7 @@ const mergeItemTicketsWithEventStubTickets = (items, ticketStubs, callback) => {
|
|||||||
callback(ticketsWithItemIds);
|
callback(ticketsWithItemIds);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = function (server, auth) {
|
module.exports = function (server, auth) {
|
||||||
|
|
||||||
server.get('/demo/populate', auth.manager, (req, res, next) => {
|
server.get('/demo/populate', auth.manager, (req, res, next) => {
|
||||||
@@ -65,8 +66,6 @@ module.exports = function (server, auth) {
|
|||||||
return next(err, false, 'No items were inserted.');
|
return next(err, false, 'No items were inserted.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mergeItemTicketsWithEventStubTickets(items, eventTickets, (ticketsWithIds) => {
|
mergeItemTicketsWithEventStubTickets(items, eventTickets, (ticketsWithIds) => {
|
||||||
Event.updateOne(
|
Event.updateOne(
|
||||||
{ _id: event.id },
|
{ _id: event.id },
|
||||||
|
|||||||
Reference in New Issue
Block a user