Revert "fix: repair shared api search index and xmltv export"
This reverts commit e9dbaeaf3b.
This commit is contained in:
1 parent
c4c8b665d4
commit
be6c9d1d96
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ async function loadData() {
|
||||
data.feedsGroupedByChannelId = feeds.groupBy((feed: sdk.Models.Feed) => feed.channel)
|
||||
|
||||
const searchableData = channels.map((channel: sdk.Models.Channel) => channel.getSearchable())
|
||||
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData)
|
||||
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData.all())
|
||||
}
|
||||
|
||||
async function downloadData() {
|
||||
|
||||
@@ -38,8 +38,9 @@ export class Guide {
|
||||
|
||||
toString() {
|
||||
const currDate = dayjs.utc(process.env.CURR_DATE || new Date().toISOString())
|
||||
const headers = { date: currDate.format('YYYYMMDD') }
|
||||
|
||||
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), currDate)
|
||||
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), headers)
|
||||
}
|
||||
|
||||
async save({ logger }: { logger: Logger }) {
|
||||
|
||||
Reference in new issue
Block a user