소스 검색

UpdateWorkByUser

xf 2 년 전
부모
커밋
8c8aec0046
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/CallCenter.Api/Realtimes/CallCenterHub.cs
  2. 1 0
      src/CallCenter/Caches/UserCacheManager.cs

+ 1 - 1
src/CallCenter.Api/Realtimes/CallCenterHub.cs

@@ -34,7 +34,7 @@ public class CallCenterHub : Hub
         work.SignalRId = Context.ConnectionId;
         await _workRepository.UpdateAsync(work, Context.ConnectionAborted);
         _userCacheManager.UpdateWorkByUser(work);
-        _userCacheManager.UpdateWorksCache(work);
+        //_userCacheManager.UpdateWorksCache(work);
         await base.OnConnectedAsync();
     }
 

+ 1 - 0
src/CallCenter/Caches/UserCacheManager.cs

@@ -165,6 +165,7 @@ public class UserCacheManager : IUserCacheManager, IScopeDependency
     public void UpdateWorkByUser(Work work)
     {
         _cacheWork.Update(Work.GetKey(KeyMode.UserId, work.UserId), d => work);
+        _cacheWork.Update(Work.GetKey(KeyMode.TelNo, work.TelNo), d => work);
     }