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

fixed distince audiencies in DIC before insert mongo

parent 6eb0e16b
......@@ -99,10 +99,13 @@ 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];
value.Add(macAddress);
dicMacByHash[audienceHash] = value;
if (!value.Contains(macAddress))
{
value.Add(macAddress);
dicMacByHash[audienceHash] = value;
}
}
else
{
......
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