Skip to content

Commit

Permalink
Merge pull request #3756 from airqo-platform/hf-fix-job
Browse files Browse the repository at this point in the history
consider deployed devices only
  • Loading branch information
Baalmart authored Oct 24, 2024
2 parents 750d3ed + d742670 commit 792d9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device-registry/bin/jobs/check-unassigned-devices-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const { logText, logObject } = require("@utils/log");
const checkUnassignedDevices = async () => {
try {
const totalCount = await DeviceModel("airqo").countDocuments({
isActive: false,
isActive: true,
});

const result = await DeviceModel("airqo").aggregate([
{
$match: {
isActive: false,
isActive: true,
category: { $exists: false } || { $eq: "" },
},
},
Expand Down

0 comments on commit 792d9b3

Please sign in to comment.