Skip to content

Commit

Permalink
fix(FEC-13773): KaltuaApplication param is not sent - (with tests fix…
Browse files Browse the repository at this point in the history
…ed) (#164)

* fix(FEC-13773): KaltuaApplication param is not sent -  tests fix

---------

Co-authored-by: JonathanTGold <jonathan.gold@[email protected]>
  • Loading branch information
JonathanTGold and JonathanTGold authored Mar 17, 2024
1 parent 1bceeba commit 1d4c394
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/application-events-model.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/kava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Kava extends BasePlugin {
applicationVersion: '',
application: '',
kalturaApplicationVersion: '',
kalturaApplication: ''
kalturaApplication: 'PLAYER'
};

/**
Expand Down
1 change: 1 addition & 0 deletions test/e2e/kava.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ describe('KavaPlugin', function () {
'entryId',
'eventIndex',
'eventType',
'kalturaApplication',
'ks',
'virtualEventId',
'partnerId',
Expand Down

0 comments on commit 1d4c394

Please sign in to comment.