- Cleanup

This commit is contained in:
2019-07-05 15:27:38 -04:00
parent b363967841
commit ebda307995

View File

@@ -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 },