🐀👫 Checkpoint
./server.js:7435365/52
This commit is contained in:
parent
f7671afd7d
commit
fa06f2b2bd
@ -86,7 +86,10 @@ app.get('/getdata', (req, res) => {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Readings.findAll({
|
Readings.findAll({
|
||||||
attributes: ['timestamp', 'reading']
|
attributes: ['timestamp', 'reading'],
|
||||||
|
order: [
|
||||||
|
['timestamp', 'DESC']
|
||||||
|
]
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
res.status(200).send(result).end();
|
res.status(200).send(result).end();
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user