From 9355ff3e0104f96c37777e3a71d5ab516c65e2e4 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Wed, 25 Jan 2023 19:35:18 +0100 Subject: [PATCH] notify: forgot to join list, gets rid of commas --- epic-games.js | 2 +- gog.js | 2 +- prime-gaming.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/epic-games.js b/epic-games.js index 6ab8d2d..4ce8b9a 100644 --- a/epic-games.js +++ b/epic-games.js @@ -199,7 +199,7 @@ try { } finally { await db.write(); // write out json db if (notify_games.filter(g => g.status != 'existed').length) { // don't notify if all were already claimed; TODO don't notify if killed? - const list = notify_games.map(g => `- ${g.title} (${g.status})
`); + const list = notify_games.map(g => `- ${g.title} (${g.status})`).join('
'); notify(`epic-games:
${list}`); } } diff --git a/gog.js b/gog.js index 4de1c22..51722b3 100644 --- a/gog.js +++ b/gog.js @@ -127,7 +127,7 @@ try { } finally { await db.write(); // write out json db if (notify_games.filter(g => g.status != 'existed').length) { // don't notify if all were already claimed; TODO don't notify if killed? - const list = notify_games.map(g => `- ${g.title} (${g.status})
`); + const list = notify_games.map(g => `- ${g.title} (${g.status})`).join('
'); notify(`gog:
${list}`); } } diff --git a/prime-gaming.js b/prime-gaming.js index b51db42..b45e556 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -182,7 +182,7 @@ try { } finally { await db.write(); // write out json db if (notify_games.length) { // list should only include claimed games - const list = notify_games.map(g => `- ${g.title} (${g.status})
`); + const list = notify_games.map(g => `- ${g.title} (${g.status})`).join('
'); notify(`prime-gaming:
${list}`); } }