From c86d851ffd5dbcb814b26679739f492a40aec560 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Mon, 23 Nov 2020 19:56:48 +0200 Subject: [PATCH] Fix TelemetryPublisherFirestore bug not checking authorization on Unauthorized --- .../Publishers/TelemetryPublisherFirestore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NucuCar.Domain.Telemetry/Publishers/TelemetryPublisherFirestore.cs b/NucuCar.Domain.Telemetry/Publishers/TelemetryPublisherFirestore.cs index 63e1489..e01a2cf 100644 --- a/NucuCar.Domain.Telemetry/Publishers/TelemetryPublisherFirestore.cs +++ b/NucuCar.Domain.Telemetry/Publishers/TelemetryPublisherFirestore.cs @@ -135,6 +135,7 @@ namespace NucuCar.Telemetry.Publishers Logger?.LogInformation("Published data to Firestore!"); break; case HttpStatusCode.Forbidden: + case HttpStatusCode.Unauthorized: { Logger?.LogError($"Failed to publish telemetry data! {responseMessage.StatusCode}. Retrying..."); await SetupAuthorization();