Manos Chorianopoulos

fix async ccms v2

...@@ -38,7 +38,7 @@ import SwiftEventBus ...@@ -38,7 +38,7 @@ import SwiftEventBus
38 tableView.delegate = self 38 tableView.delegate = self
39 tableView.dataSource = self 39 tableView.dataSource = self
40 40
41 - SwiftEventBus.onBackgroundThread(self, name: "ccms_retrieved") { result in 41 + SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in
42 print("===== SwiftEventBus ccms_retrieved =====") 42 print("===== SwiftEventBus ccms_retrieved =====")
43 self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns()) 43 self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns())
44 self.tableView.reloadData() 44 self.tableView.reloadData()
......
...@@ -27,7 +27,7 @@ import SwiftEventBus ...@@ -27,7 +27,7 @@ import SwiftEventBus
27 tableView.delegate = self 27 tableView.delegate = self
28 tableView.dataSource = self 28 tableView.dataSource = self
29 29
30 - SwiftEventBus.onBackgroundThread(self, name: "ccms_retrieved") { result in 30 + SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in
31 print("===== SwiftEventBus ccms_retrieved =====") 31 print("===== SwiftEventBus ccms_retrieved =====")
32 self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns()) 32 self.campaigns = swiftApi().mergeGFYCCMSLoyaltyCampaigns(campaigns: swiftApi().getCCMSLoyaltyCampaigns())
33 self.tableView.reloadData() 33 self.tableView.reloadData()
......