admin 2 年之前
父節點
當前提交
cc5b0c9e04
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/CallCenter/Users/UserDomainService.cs

+ 2 - 2
src/CallCenter/Users/UserDomainService.cs

@@ -64,7 +64,7 @@ namespace CallCenter.Users
             await _workRepository.AddAsync(work, cancellationToken);
 
             //更新work缓存
-            //_userCacheManager.AddWorksCache(work);
+            _userCacheManager.AddWorksCache(work);
             //_userCacheManager.RemoveCallCache(work.Id);
             if (!string.IsNullOrEmpty(user.StaffNo))
                 await _deviceManager.UpdateStaffNoAsync(tel.No, user.StaffNo, tel.LineId, cancellationToken);
@@ -97,7 +97,7 @@ namespace CallCenter.Users
             _cacheWork.Remove(work.GetKey(KeyMode.TelNo));
 
             //更新work缓存
-            //_userCacheManager.RemoveWorksCache(work.Id);
+            _userCacheManager.RemoveWorksCache(work.Id);
 
             foreach (var group in tel.Groups)
             {