diff --git a/backend/api/EventHandlers/MqttEventHandler.cs b/backend/api/EventHandlers/MqttEventHandler.cs index 30c2f5e56..79c628fbb 100644 --- a/backend/api/EventHandlers/MqttEventHandler.cs +++ b/backend/api/EventHandlers/MqttEventHandler.cs @@ -148,6 +148,8 @@ private async void OnIsarRobotInfo(object? sender, MqttReceivedArgs mqttArgs) if (isarRobotInfo.CurrentInstallation is not null) UpdateCurrentInstallationIfChanged(installation, ref robot, ref updatedFields); if (updatedFields.IsNullOrEmpty()) return; + // TODO: why do we not update status? If it is idle then the mission is clearly done + robot = await robotService.Update(robot); _logger.LogInformation("Updated robot '{Id}' ('{RobotName}') in database: {Updates}", robot.Id, robot.Name, updatedFields);