myt/exporters/event.js

26 lines
520 B
JavaScript
Raw Permalink Normal View History

2022-02-02 04:05:31 +00:00
module.exports = {
schemaCol: 'EVENT_SCHEMA',
nameCol: 'EVENT_NAME',
escapeCols: [
'starts',
'ends',
2022-02-07 14:43:12 +00:00
'executeAt',
'comment'
],
formatter(params) {
let status;
switch(params.status){
case 'DISABLED':
status = 'DISABLE';
break;
case 'SLAVESIDE_DISABLED':
status = 'DISABLE ON SLAVE';
break;
default:
status = 'ENABLE'
}
params.status = status;
}
2022-02-02 04:05:31 +00:00
};