./server.js:7435365/52
@ -86,7 +86,10 @@ app.get('/getdata', (req, res) => {
*/
Readings.findAll({
attributes: ['timestamp', 'reading']
attributes: ['timestamp', 'reading'],
order: [
['timestamp', 'DESC']
]
}).then((result) => {
res.status(200).send(result).end();
})