diff --git a/scripts/commands/create-queue.js b/scripts/commands/create-queue.js index 7f291d59..e63d0778 100644 --- a/scripts/commands/create-queue.js +++ b/scripts/commands/create-queue.js @@ -69,6 +69,7 @@ async function createQueue() { channel: { lang: item.lang, xmltv_id: item.xmltv_id, + display_name: item.name, site_id: item.site_id, site: item.site }, diff --git a/tests/__data__/expected/database/queue.db b/tests/__data__/expected/database/queue.db index 34ab32c8..12c16d8f 100644 --- a/tests/__data__/expected/database/queue.db +++ b/tests/__data__/expected/database/queue.db @@ -1,2 +1,2 @@ -{"channel":{"lang":"ru","xmltv_id":"CNNInternationalEurope.us","site_id":"140","site":"example.com"},"date":"2022-02-03T00:00:00.000Z","configPath":"tests/__data__/input/sites/example.com.config.js","groups":["ca/example.com"],"error":null,"cluster_id":1,"_id":"vOpwztzvJ5pFSVws"} -{"channel":{"lang":"ru","xmltv_id":"CNNInternationalEurope.us","site_id":"140","site":"example.com"},"date":"2022-02-04T00:00:00.000Z","configPath":"tests/__data__/input/sites/example.com.config.js","groups":["ca/example.com"],"error":null,"cluster_id":1,"_id":"sP2A0zQSOoVg0BS1"} +{"channel":{"lang":"ru","xmltv_id":"CNNInternationalEurope.us","display_name":"CNN International Europe","site_id":"140","site":"example.com"},"date":"2022-02-03T00:00:00.000Z","configPath":"tests/__data__/input/sites/example.com.config.js","groups":["ca/example.com"],"error":null,"cluster_id":1,"_id":"vOpwztzvJ5pFSVws"} +{"channel":{"lang":"ru","xmltv_id":"CNNInternationalEurope.us","display_name":"CNN International Europe","site_id":"140","site":"example.com"},"date":"2022-02-04T00:00:00.000Z","configPath":"tests/__data__/input/sites/example.com.config.js","groups":["ca/example.com"],"error":null,"cluster_id":1,"_id":"sP2A0zQSOoVg0BS1"}