Create scripts/store/setters

This commit is contained in:
Aleksandr Statciuk 2021-12-12 07:12:06 +03:00
parent 21b8ce8731
commit 42d8a670d2
13 changed files with 156 additions and 0 deletions

View file

@ -0,0 +1,7 @@
module.exports = function ({ is_broken = false, status }) {
if (status) {
return status.level > 3 ? true : false
}
return is_broken
}