[Security Solution] fix endpoint being visible after unenrolling agent (#116372)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Joey F. Poon 2021-10-27 17:38:53 -05:00 committed by GitHub
parent 17df3a2654
commit 4efabacd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,5 +42,9 @@ export function agentSOAttributesToFleetServerAgentDoc(
doc.policy_revision_idx = policyRevison;
}
if (!doc.updated_at) {
doc.updated_at = new Date().toISOString();
}
return doc;
}