From be073ec32964a07d86c44dcec6057b6f76f71cc4 Mon Sep 17 00:00:00 2001 From: Paul-Lukas Kovacic Date: Tue, 1 Oct 2024 14:41:11 +0200 Subject: [PATCH] feat: convert AD_INDEX and AD_TYPE to correct datatype --- src/utils/filterUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/filterUtils.ts b/src/utils/filterUtils.ts index 43fe729..de4421e 100644 --- a/src/utils/filterUtils.ts +++ b/src/utils/filterUtils.ts @@ -63,6 +63,8 @@ const convertFilterForAds = (rawValue: string, filterAttribute: QueryAdAttribute case 'IS_LINEAR': return rawValue === 'true'; + case 'AD_INDEX': + case 'AD_TYPE': case 'AD_STARTUP_TIME': case 'AD_WRAPPER_ADS_COUNT': case 'AUDIO_BITRATE': @@ -114,6 +116,7 @@ const convertFilter = (rawValue: string, filterAttribute: QueryAttribute) => { return rawValue === 'true'; case 'AUDIO_BITRATE': + case 'AD_INDEX': case 'BUFFERED': case 'CLIENT_TIME': case 'DOWNLOAD_SPEED':