Skip to content

Commit

Permalink
fix: correctly load channel config so disabled flag works (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSench authored May 6, 2024
1 parent 512bbd2 commit e9a342d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42583,7 +42583,7 @@ function getConfig() {
/** @type {Array<ChannelConfig>} */
const channelConfig = Object.values(rawChannelConfig)
.map(it => ({
channelId: it.channelId,
...it,
limit: it.limit ?? 50
}))
.filter(it => it.channelId && !it.disabled);
Expand Down
2 changes: 1 addition & 1 deletion src/workflow.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function getConfig() {
/** @type {Array<ChannelConfig>} */
const channelConfig = Object.values(rawChannelConfig)
.map(it => ({
channelId: it.channelId,
...it,
limit: it.limit ?? 50
}))
.filter(it => it.channelId && !it.disabled);
Expand Down

0 comments on commit e9a342d

Please sign in to comment.