Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxx committed May 12, 2023
2 parents e006890 + 5dbfdff commit 2506849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/db/dynamodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ class DbScheduleEvents implements IDbScheduleEventsAdapter {
const filter = this.rangeToFilter(channelId, rangeOpts);
const items = await this.db.scan(this.schedulesTableName, filter);
let scheduleEvents: ScheduleEvent[] = [];
console.log(`getScheduleEventsByChannelId items ${JSON.stringify(items)}`);
//console.log(`getScheduleEventsByChannelId items ${JSON.stringify(items)}`);
items.forEach(item => {
console.log(`getScheduleEventsByChannelId items forEach item=${JSON.stringify(item)}`);
//console.log(`getScheduleEventsByChannelId items forEach item=${JSON.stringify(item)}`);
scheduleEvents.push(new ScheduleEvent({
id: item.id,
channelId: item.channelId,
Expand All @@ -294,6 +294,7 @@ class DbScheduleEvents implements IDbScheduleEventsAdapter {
type: item.type,
liveUrl: item.liveUrl,
}));
console.log(`getScheduleEventsByChannelId items forEach item title: ${item.title} start_time=${parseInt(item.start_time, 10)} | end_time=${parseInt(item.end_time, 10)}`);
});
const sortedScheduleEvents = scheduleEvents.sort((a, b) => a.start_time - b.start_time);
return sortedScheduleEvents;
Expand Down

0 comments on commit 2506849

Please sign in to comment.