Skip to content

Commit

Permalink
fix swipe devices
Browse files Browse the repository at this point in the history
  • Loading branch information
suprmat95 committed Jan 9, 2020
1 parent 1d361ce commit fddca4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/reader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ app.route('/api/devices').get((req, res) => {
coll.aggregate([
{$match:{timestamp:{$gt:date-devicesRadarTimeWindows}}},
{$group:{_id:"$mac", x: {$avg: '$x'}, y: {$avg: '$y'}}},
{$sort: {total: -1}},
{$sort: {_id: 1}},
]).toArray(function (err, result) {
if (err) {
res.send(err);
Expand Down

0 comments on commit fddca4f

Please sign in to comment.