diff --git a/api/tacticalrmm/winupdate/tasks.py b/api/tacticalrmm/winupdate/tasks.py index 066f5978..f28a9bea 100644 --- a/api/tacticalrmm/winupdate/tasks.py +++ b/api/tacticalrmm/winupdate/tasks.py @@ -19,7 +19,7 @@ def auto_approve_updates_task(): # scheduled task that checks and approves updates daily agents = Agent.objects.only( - "pk", "version", "last_seen", "overdue_time", "offline_time" + "pk", "agent_id", "version", "last_seen", "overdue_time", "offline_time" ) for agent in agents: agent.delete_superseded_updates() @@ -46,7 +46,7 @@ def auto_approve_updates_task(): def check_agent_update_schedule_task(): # scheduled task that installs updates on agents if enabled agents = Agent.objects.only( - "pk", "version", "last_seen", "overdue_time", "offline_time" + "pk", "agent_id", "version", "last_seen", "overdue_time", "offline_time" ) online = [ i