Fix mts.rs

This commit is contained in:
Aleksandr Statciuk 2021-11-13 11:46:14 +03:00
parent c547587b98
commit 9970a3a019
2 changed files with 1 additions and 1 deletions

View file

@ -46,6 +46,7 @@ module.exports = {
function parseContent(content, channel) {
const [_, site_id] = channel.site_id.split('#')
if (!content) return null
const data = JSON.parse(content)
if (!data || !data.channels || !data.channels.length) return null