From 9374bbee717ea36bbe56f01dd17ac37b0ffc4bd5 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 24 May 2023 23:36:53 +0300 Subject: [PATCH] Update update.js --- scripts/db/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/db/update.js b/scripts/db/update.js index 16488175..990b32ec 100644 --- a/scripts/db/update.js +++ b/scripts/db/update.js @@ -66,7 +66,7 @@ async function editChannels() { } const index = _.findIndex(channels, { id: channel.id }) - if (!index) { + if (index < 0) { updateIssue(issue, { labels: ['channels:edit', 'rejected:wrong_id'] }) return }