🐀👫 Checkpoint

./server.js:7435365/52
This commit is contained in:
Glitch (hello-express) 2019-12-20 22:48:08 +00:00
parent f7671afd7d
commit fa06f2b2bd

View File

@ -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();
})