Update api.ts

This commit is contained in:
freearhey
2026-03-13 07:18:50 +03:00
parent 7a3d5c4749
commit f03d6932c7

View File

@@ -40,7 +40,8 @@ async function loadData() {
blocklist
} = dataManager.getProcessedData()
searchIndex = sdk.SearchEngine.createIndex<sdk.Models.Channel>(channels)
const searchableData = channels.map((channel: sdk.Models.Channel) => channel.getSearchable())
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData.all())
data.categoriesKeyById = categories.keyBy((category: sdk.Models.Category) => category.id)
data.countriesKeyByCode = countries.keyBy((country: sdk.Models.Country) => country.code)