i facing peculiar problem unable debug. typeerror: code returning function undefined ends api call @ log , break points, after api ends error, proceeds function of same.
how possible.
am using nodejs/express/sequelizejs
models.holdings.update(obj,{ where:{ id: obj.id } }).then().catch()
then , catch meant provide functions execute upon resolution , error (respectively).
models.holdings.update(obj,{ where:{ id: obj.id } }).then(function(result) { console.log(result); }).catch(function(error) { console.log(error); });
Comments
Post a Comment