Skip to content

Commit

Permalink
chore : Remove temporary code
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Jul 11, 2023
1 parent 2e305f8 commit 8e7c83d
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,8 @@ public async Task<IEnumerable<MessageReceiverUser>> TransformUserReceivers(AppCh

private async Task<Dictionary<Guid, string>> GetUserClientIds(AppChannel channel, List<Guid> userIds)
{
var userSystemDatas = await _authClient.UserService.GetSystemListDataAsync<string>(userIds, $"{MasaStackConsts.MC_SYSTEM_ID}:{channel.Code}");
return userIds.ToDictionary(x => x, x =>
{
var userSystemValue = userSystemDatas.GetValueOrDefault(x);
if (userSystemValue == null)
return string.Empty;
var userSystemData = JsonSerializer.Deserialize<UserSystemData>(userSystemValue);
return userSystemData?.ClientId ?? string.Empty;
});
//return userSystemDatas.ToDictionary(x => x.Key, x =>
//{
// var userSystemData = JsonSerializer.Deserialize<UserSystemData>(x.Value);
// return userSystemData?.ClientId ?? string.Empty;
//});

//var userSystemDatas = await _authClient.UserService.GetSystemListDataAsync<UserSystemData>(userIds, $"{MasaStackConsts.MC_SYSTEM_ID}:{channel.Code}");
//return userSystemDatas.ToDictionary(x => x.Key, x => x.Value.ClientId);
var userSystemDatas = await _authClient.UserService.GetSystemListDataAsync<UserSystemData>(userIds, $"{MasaStackConsts.MC_SYSTEM_ID}:{channel.Code}");
return userSystemDatas.ToDictionary(x => x.Key, x => x.Value.ClientId);
}

private async Task<IEnumerable<MessageReceiverUser>> TransformDepartmentReceiversAsync(AppChannel channel, ExtraPropertyDictionary variables, IEnumerable<MessageTaskReceiver> receivers)
Expand Down

0 comments on commit 8e7c83d

Please sign in to comment.