diff --git a/lib/models.js b/lib/models.js index 23c3c54e..3d15d101 100644 --- a/lib/models.js +++ b/lib/models.js @@ -136,6 +136,7 @@ export const getActions = async (oldTables, newTables, upActions = null) => { const loopIndexes = (diff, actionType, actions, actionTemplate, ArrayOfIndexes = false) => { Object.values(diff).forEach((index) => { if (ArrayOfIndexes) index = index[index]; + if(!index) return const actionTemp = { actionType, fields: index.fields,