Adventure list is now returned oldest to newest

This commit is contained in:
2019-03-03 22:41:19 +01:00
parent c7cd82af5f
commit 56b09e3f10

View File

@@ -21,7 +21,7 @@ function list(req, res) {
.findAll({
attributes: ['id', 'title', 'subtext', 'dateStart', 'dateEnd', 'locationName'],
order: [
['dateStart', 'DESC'],
['dateStart', 'ASC'],
]
})
.then(adventure => res.status(200).send(adventure))