|
@@ -46,7 +46,7 @@ namespace Hotline.Application.CallCenter.Calls
|
|
{
|
|
{
|
|
if (telmodel.State == "logout")
|
|
if (telmodel.State == "logout")
|
|
{
|
|
{
|
|
- var telRest = await _telRestRepository.GetAsync(x => x.TelNo == item.TelNo && x.EndTime != null, stoppingToken);
|
|
|
|
|
|
+ var telRest = await _telRestRepository.GetAsync(x => x.TelNo == item.TelNo && !x.EndTime.HasValue, stoppingToken);
|
|
if (telRest is not null)
|
|
if (telRest is not null)
|
|
{
|
|
{
|
|
telRest.EndRest();
|
|
telRest.EndRest();
|