Skip to content

Commit

Permalink
fix telegram id parser for non string value
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Oct 14, 2021
1 parent 12cbe68 commit f382ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/helpers/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const parseTime = (t) => {
}

const parseTelegramChatIDs = (s = "") => {
return [...new Set(Array.isArray(s) ? s : s.split(",").map( v => v.trim() ) )]
return [...new Set(Array.isArray(s) ? s : (""+s).split(",").map( v => v.trim() ) )]
}

module.exports = {
Expand Down

0 comments on commit f382ef6

Please sign in to comment.