This commit is contained in:
2023-05-21 19:36:45 +02:00
parent 3d0d648ed2
commit fff4ce7441
5 changed files with 82 additions and 14 deletions

View File

@ -11,8 +11,6 @@ router.get('/', function(req, res, next) {
router.get('/data/:timestamp', async (req,res) => {
let date = new Date(req.params.timestamp);
try {
let entries = await PMEntry.find({ updatedAt: {$gt: req.params.timestamp} });
res.json(entries);