diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs index 90dd9cdf..f433ee77 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs @@ -35,7 +35,7 @@ public partial class MongoRepository UpdateAgentProfiles(agent.Id, agent.Profiles); break; case AgentField.Label: - UpdateAgentLabels(agent.Id, agent.Profiles); + UpdateAgentLabels(agent.Id, agent.Labels); break; case AgentField.RoutingRule: UpdateAgentRoutingRules(agent.Id, agent.RoutingRules);