Merge branch 'master' of wopr.rodax-software.com:lqdvi/app2-api

This commit is contained in:
David Arranz 2019-09-28 00:03:39 +02:00
commit 62d1e19a55

View File

@ -113,15 +113,14 @@ routes.get('/events/today',
SortMiddleware.middleware({ default: "-init_date" }),
(req, res, next) => {
if (req.user.level = 8){
console.log('Te doy datos falsos')
}
else {
console.log('Te doy datos verdaderos')
eventController.find({
scopes: ['defaultScope', 'today', 'includeVenue', 'includeMultimedias', 'includeDetails'],
eventController.find({
scopes: ['defaultScope', 'next', 'includeVenue', 'includeMultimedias', { method: ['includeInscription', req.user.id] }],
})(req, res, next)
}
.then (function (events) {
console.log('>>>> ', events); //.stateCode = 'current_event';
return events;
});
}
);*/