fix institutionContract otp bug

This commit is contained in:
2025-10-04 15:30:12 +03:30
parent 896c891f70
commit ea0be6b865

View File

@@ -727,8 +727,15 @@ public class institutionContractController : AdminBaseController
{
var sem = _locks.GetOrAdd(id, _ => new SemaphoreSlim(1, 1));
await sem.WaitAsync();
var res = await _institutionContractApplication.SendVerifyOtp(id);
return res;
try
{
var res = await _institutionContractApplication.SendVerifyOtp(id);
return res;
}
finally
{
sem.Release();
}
}
}