Skip to content

Commit

Permalink
Added check to prevent status change if ProviderStatus is Pending
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyYuras committed Aug 28, 2023
1 parent 4f7b9f4 commit f829171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OutOfSchool/OutOfSchool.WebApi/Services/ProviderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ private void ChangeProviderStatusIfNeeded(
statusChanged = false;
licenseChanged = false;

if (!(checkProvider.FullTitle == providerDto.FullTitle
if (checkProvider.Status != ProviderStatus.Pending &&
!(checkProvider.FullTitle == providerDto.FullTitle
&& checkProvider.EdrpouIpn == providerDto.EdrpouIpn))
{
checkProvider.Status = ProviderStatus.Recheck;
Expand Down

0 comments on commit f829171

Please sign in to comment.