Update status.js

This commit is contained in:
Aleksandr Statciuk 2021-12-14 09:34:03 +03:00
parent 3b52298371
commit efeb7894cc
1 changed files with 0 additions and 14 deletions

View File

@ -7,19 +7,5 @@ module.exports = function ({ title, status = {} }) {
return Object.values(statuses).find(s => s.label === label) || statuses['online']
}
if (status) {
switch (status.code) {
case 'not_247':
case 'geo_blocked':
return status
case 'offline':
return statuses['not_247']
case 'timeout':
return statuses['timeout']
default:
return statuses['online']
}
}
return status
}