nhandled rejection TypeError: Cannot read property '2' of undefined
at buildOrder (/home/aldo/projects/disposito/apps/dispo/node_modules/sequelize-datatables/src/index.js:74:29)
at buildSearch.then.then (/home/aldo/projects/disposito/apps/dispo/node_modules/sequelize-datatables/src/index.js:133:21)
at tryCatcher (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/home/aldo/projects/disposito/apps/dispo/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
i tried the ordering on DataTables 1.10.16 with the following req.body from client side:
and the server code
and i got this error: