fix institutionContract otp bug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user