-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupgrades.js
More file actions
28 lines (23 loc) · 742 Bytes
/
upgrades.js
File metadata and controls
28 lines (23 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const UpgradeScripts = [
function (_context, props) {
const result = {
updatedConfig: null,
updatedActions: [],
updatedFeedbacks: [],
}
// for (const action of props.actions) {
// if (action.actionId === 'setValues') {
// action.actionId = 'fadeValues'
// action.options.duration = 0
// result.updatedActions.push(action)
// } else if (action.actionId === 'setValue' && !action.options.duration) {
// action.options.duration = 0
// result.updatedActions.push(action)
// }
// }
return result
},
]
module.exports = {
UpgradeScripts,
}