Skip to content

Commit

Permalink
fix(project): avod as a default model
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLantukh committed Feb 16, 2023
1 parent cf804ca commit f3096ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/configLoad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const calculateAccessModel = (config: Config): AccessModel => {

if (!id) return 'AVOD';
if (!monthlyOffer && !yearlyOffer) return 'AUTHVOD';

return 'SVOD';
}

if (config?.integrations?.jwp || config?.integrations?.inplayer) {
Expand All @@ -50,8 +52,11 @@ const calculateAccessModel = (config: Config): AccessModel => {

if (!clientId) return 'AVOD';
if (!assetId) return 'AUTHVOD';

return 'SVOD';
}
return 'SVOD';

return 'AVOD';
};

export async function loadAndValidateConfig(configSource: string | undefined) {
Expand Down

0 comments on commit f3096ed

Please sign in to comment.