Good idea. Here is what I’m getting when I’m solely trying to update the one field:
(node:129) UnhandledPromiseRejectionWarning: TypeError: this.res.on is not a function
at App.setDbConnection (/opt/node_app/lib/core/app.js:236:18)
at App.getDbConnection (/opt/node_app/lib/core/app.js:252:25)
at App.update (/opt/node_app/lib/modules/dbupdater.js:39:25)
at App._exec (/opt/node_app/lib/core/app.js:417:57)
at App.exec (/opt/node_app/lib/core/app.js:357:20)
at App.define (/opt/node_app/lib/core/app.js:347:20)
at Job.job (/opt/node_app/lib/setup/cron.js:37:20)
at Job.invoke (/opt/node_app/node_modules/node-schedule/lib/schedule.js:173:10)
at /opt/node_app/node_modules/node-schedule/lib/schedule.js:552:11
at Timeout._onTimeout (/opt/node_app/node_modules/node-schedule/lib/schedule.js:510:7)
(node:129) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
–unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 14)