From 53a10b760642185ee63bcfbd5b10d2f79f80f3d2 Mon Sep 17 00:00:00 2001 From: Audrey SERRA <95615798+audserraCGI@users.noreply.github.com> Date: Wed, 25 May 2022 17:47:18 +0200 Subject: [PATCH] LastDeployment set to null on EdgeDevice if no configuration is found. (#743) --- .../Server/Controllers/v1.0/EdgeDevicesController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs b/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs index 72b041050..e256d08f3 100644 --- a/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs +++ b/src/AzureIoTHub.Portal/Server/Controllers/v1.0/EdgeDevicesController.cs @@ -359,9 +359,9 @@ private async Task RetrieveLastConfiguration(Twin twin) item.Status = nameof(ConfigurationStatus.Applied); } } + return item; } - - return item; + return null; } } }