Ordenar los eventos próximos por fecha del evento, no por fecha de inscripciones.
This commit is contained in:
parent
f012750287
commit
a9804eae58
@ -58,7 +58,7 @@ routes.get('/events/next',
|
|||||||
invalidFields: generalInvalidFields
|
invalidFields: generalInvalidFields
|
||||||
}),
|
}),
|
||||||
PaginateMiddleware.middleware(),
|
PaginateMiddleware.middleware(),
|
||||||
SortMiddleware.middleware({ default: "init_available_date" }),
|
SortMiddleware.middleware({ default: "init_date" }),
|
||||||
(req, res, next) => {
|
(req, res, next) => {
|
||||||
// console.log(moment().add(1, 'days').startOf('day').utc());
|
// console.log(moment().add(1, 'days').startOf('day').utc());
|
||||||
return eventController.find({
|
return eventController.find({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user