Fix TelemetryPublisherFirestore bug not checking authorization on Unauthorized

This commit is contained in:
Denis-Cosmin Nutiu 2020-11-23 19:56:48 +02:00
parent ea65ce61e1
commit c86d851ffd

View file

@ -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();