Skip to content

Commit

Permalink
fix alert template not assigned on new agent fixes #1896
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jun 19, 2024
1 parent 203a15b commit 0235dad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tacticalrmm/apiv3/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from accounts.models import User
from agents.models import Agent, AgentHistory
from agents.serializers import AgentHistorySerializer
from alerts.tasks import cache_agents_alert_template
from apiv3.utils import get_agent_config
from autotasks.models import AutomatedTask, TaskResult
from autotasks.serializers import TaskGOGetSerializer, TaskResultSerializer
Expand Down Expand Up @@ -491,6 +492,7 @@ def post(self, request):

ret = {"pk": agent.pk, "token": token.key}
sync_mesh_perms_task.delay()
cache_agents_alert_template.delay()
return Response(ret)


Expand Down

0 comments on commit 0235dad

Please sign in to comment.