CSR-18 remove async
This commit is contained in:
parent
1c5e91c3ce
commit
11e8815969
1 changed files with 2 additions and 12 deletions
|
|
@ -7,7 +7,7 @@ import { analyticsPageEvents } from "@/constants/analytics-page-events";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
async logEvent(destinationFmgPageValue, pageEvent, category, action, label, value){
|
logEvent(destinationFmgPageValue, pageEvent, category, action, label, value){
|
||||||
var payload = {
|
var payload = {
|
||||||
userId: getDeviceIdValue(),
|
userId: getDeviceIdValue(),
|
||||||
sessionKey: getSessionKeyValue(),
|
sessionKey: getSessionKeyValue(),
|
||||||
|
|
@ -24,17 +24,7 @@ export default {
|
||||||
payload.customEvent = {category: category, action: action, label: label, value: value};
|
payload.customEvent = {category: category, action: action, label: label, value: value};
|
||||||
}
|
}
|
||||||
|
|
||||||
const logActivityPromise = baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.LOG_ACTIVITY, payload, false);
|
baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.LOG_ACTIVITY, payload, false);
|
||||||
|
|
||||||
// Settle promises and get results
|
|
||||||
const promiseResultMap = [
|
|
||||||
{
|
|
||||||
resultKey: "logActivity",
|
|
||||||
promise: logActivityPromise,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
let resultMap = await settleAllPromises(promiseResultMap);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
pushEventToGA(category, action, label, value, pageName, pushToLogApp) {
|
pushEventToGA(category, action, label, value, pageName, pushToLogApp) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue