|
@@ -60,7 +60,7 @@ namespace CallCenter.Users
|
|
|
|
|
|
var work = new Work(userId, user.Name, tel.Id, tel.No);
|
|
|
await _workRepository.AddAsync(work, cancellationToken);
|
|
|
-
|
|
|
+ _userCacheManager.RemoveCallCache(work.Id);
|
|
|
if (!string.IsNullOrEmpty(user.StaffNo))
|
|
|
await _deviceManager.UpdateStaffNoAsync(tel.No, user.StaffNo, tel.LineId, cancellationToken);
|
|
|
|
|
@@ -86,7 +86,7 @@ namespace CallCenter.Users
|
|
|
await _deviceManager.UpdateStaffNoAsync(work.TelNo, string.Empty, tel.LineId, cancellationToken);
|
|
|
_cacheWork.Remove(work.GetKey(KeyMode.UserId));
|
|
|
_cacheWork.Remove(work.GetKey(KeyMode.TelNo));
|
|
|
-
|
|
|
+ _userCacheManager.RemoveCallCache(work.Id);
|
|
|
//foreach (var group in tel.Groups)
|
|
|
//{
|
|
|
// await _deviceManager.ModifyGroupExtAsync(group.No, tel.No, group.Voice, false, cancellationToken);
|