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 }