From 8660bf049fb40b8b3dc88ae05461102cbcccfc46 Mon Sep 17 00:00:00 2001 From: Mike McNeil Date: Tue, 19 Dec 2017 18:36:35 -0600 Subject: [PATCH] Follow-up to d9d31aa1bec80d83e9b5b2383376740e68f9bc5e --- machines/begin-transaction.js | 2 +- machines/commit-transaction.js | 2 +- machines/rollback-transaction.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/machines/begin-transaction.js b/machines/begin-transaction.js index 102274e..11030b8 100644 --- a/machines/begin-transaction.js +++ b/machines/begin-transaction.js @@ -66,7 +66,7 @@ module.exports = { Pack.sendNativeQuery({ connection: inputs.connection, nativeQuery: 'BEGIN' - }).exec({ + }).switch({ error: function error(err) { return exits.error(err); }, diff --git a/machines/commit-transaction.js b/machines/commit-transaction.js index fffb563..b0be713 100644 --- a/machines/commit-transaction.js +++ b/machines/commit-transaction.js @@ -69,7 +69,7 @@ module.exports = { Pack.sendNativeQuery({ connection: inputs.connection, nativeQuery: 'COMMIT' - }).exec({ + }).switch({ error: function error(err) { return exits.error(err); }, diff --git a/machines/rollback-transaction.js b/machines/rollback-transaction.js index 301fa3b..e66cc09 100644 --- a/machines/rollback-transaction.js +++ b/machines/rollback-transaction.js @@ -67,7 +67,7 @@ module.exports = { Pack.sendNativeQuery({ connection: inputs.connection, nativeQuery: 'ROLLBACK' - }).exec({ + }).switch({ error: function error(err) { return exits.error(err); },