Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Fixed status check when exposure detection #1028

Merged
2 commits merged into from
Jun 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,8 @@ private async Task InternalExposureDetectionAsync(CancellationTokenSource cancel
return;
}

IEnumerable<int> statuseCodes = await _exposureNotificationApiService.GetStatusCodesAsync();

bool isActivated = statuseCodes.Contains(ExposureNotificationStatus.Code_Android.ACTIVATED)
| statuseCodes.Contains(ExposureNotificationStatus.Code_iOS.Active);

if (!isActivated)
{
_loggerService.Info($"EN API is not ACTIVATED.");
This conversation was marked as resolved.
Show resolved Hide resolved
return;
}
IEnumerable<int> statusCodes = await _exposureNotificationApiService.GetStatusCodesAsync();
_loggerService.Info($"EN API status code. [{string.Join(",", statusCodes)}]");

var cancellationToken = cancellationTokenSource?.Token ?? default(CancellationToken);

Expand Down