From 1d4c3947b4bc9d1b806f6bc6c12852c50c65028e Mon Sep 17 00:00:00 2001 From: JonathanTGold <62672270+JonathanTGold@users.noreply.github.com> Date: Sun, 17 Mar 2024 17:20:53 +0100 Subject: [PATCH] fix(FEC-13773): KaltuaApplication param is not sent - (with tests fixed) (#164) * fix(FEC-13773): KaltuaApplication param is not sent - tests fix --------- Co-authored-by: JonathanTGold --- src/application-events-model.ts | 3 +-- src/kava.ts | 2 +- test/e2e/kava.spec.js | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/application-events-model.ts b/src/application-events-model.ts index 058d06d5..c1edeee2 100644 --- a/src/application-events-model.ts +++ b/src/application-events-model.ts @@ -1,7 +1,6 @@ import { KavaModel } from './kava-model'; import { KavaEvent } from './types'; import { ButtonType } from './enums/button-type'; -import { KalturaApplication } from './enums/kaltura-application'; import { ApplicationEventType } from './enums/application-event-type'; import { PageLoadType } from './enums/page-load-type'; import { PluginsEvents } from './applications-events'; @@ -11,7 +10,7 @@ export function getApplicationEventsModel(eventObj: KavaEvent, model: KavaModel, partnerId: model.getPartnerId(), entryId: model.getEntryId(), sessionId: model.getSessionId(), - kalturaApplication: KalturaApplication.PLAYER + kalturaApplication: model.getKalturaApplication() }; if (model.getUserId()) { commonModel['userId'] = model.getUserId(); diff --git a/src/kava.ts b/src/kava.ts index f0011fcb..7d0a6c36 100644 --- a/src/kava.ts +++ b/src/kava.ts @@ -64,7 +64,7 @@ class Kava extends BasePlugin { applicationVersion: '', application: '', kalturaApplicationVersion: '', - kalturaApplication: '' + kalturaApplication: 'PLAYER' }; /** diff --git a/test/e2e/kava.spec.js b/test/e2e/kava.spec.js index 69784fa1..cc598ab4 100644 --- a/test/e2e/kava.spec.js +++ b/test/e2e/kava.spec.js @@ -786,6 +786,7 @@ describe('KavaPlugin', function () { 'entryId', 'eventIndex', 'eventType', + 'kalturaApplication', 'ks', 'virtualEventId', 'partnerId',