From d3768e1f9857b4369a8958d9c4ae229dfcad4420 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 20 Nov 2022 17:35:01 +0300 Subject: [PATCH] Update update.js --- scripts/commands/guides/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index f9b28385..e0e09b17 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -100,7 +100,7 @@ async function main() { channels = _.sortBy(channels, 'id') channels = _.uniqBy(channels, 'id') - programs = programs = _.sortBy(programs, ['channel', 'start']) + programs = _.sortBy(programs, ['channel', 'start']) programs = programs.map(p => new Program(p, new Channel(channels_dic[p.channel]))) programs = _.uniqBy(programs, p => p.channel + p.start)