Skip to content

Commit

Permalink
fix: Fixed bug of replacement fake agent properties when the Office 3…
Browse files Browse the repository at this point in the history
…65 sample alerts are generated due to agent property replacement
  • Loading branch information
Desvelao committed Jan 24, 2022
1 parent 159c41d commit 74ff7d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/lib/generate-alerts/generate-alerts-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ function generateAlert(params) {
}

if (params.office) {
alert.agent = {
id: '000',
ip: alert.agent.ip,
name: alert.agent.name
};

if (params.manager && params.manager.name) {
alert.agent.name = params.manager.name;
Expand Down

0 comments on commit 74ff7d3

Please sign in to comment.