Commit a942f4ba authored by Hoang Viet Dung's avatar Hoang Viet Dung 🏃

fixed distince audiencies in DIC before insert mongo

parent 6eb0e16b
......@@ -99,11 +99,14 @@ List<AudienceObject> BuildAudienceObject(List<AnalyticView> analyticViews, int t
var audienceHash = Common.GetHash(macAddress);
if (dicMacByHash.ContainsKey(audienceHash))
{
//append mac into same audienceHash
//append new mac into same audienceHash of Dic
var value = dicMacByHash[audienceHash];
if (!value.Contains(macAddress))
{
value.Add(macAddress);
dicMacByHash[audienceHash] = value;
}
}
else
{
dicMacByHash.Add(audienceHash, new List<string> { macAddress });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment