Skip to content

Commit 8660bf0

Browse files
committed
Follow-up to d9d31aa
1 parent d9d31aa commit 8660bf0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

machines/begin-transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
Pack.sendNativeQuery({
6767
connection: inputs.connection,
6868
nativeQuery: 'BEGIN'
69-
}).exec({
69+
}).switch({
7070
error: function error(err) {
7171
return exits.error(err);
7272
},

machines/commit-transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = {
6969
Pack.sendNativeQuery({
7070
connection: inputs.connection,
7171
nativeQuery: 'COMMIT'
72-
}).exec({
72+
}).switch({
7373
error: function error(err) {
7474
return exits.error(err);
7575
},

machines/rollback-transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = {
6767
Pack.sendNativeQuery({
6868
connection: inputs.connection,
6969
nativeQuery: 'ROLLBACK'
70-
}).exec({
70+
}).switch({
7171
error: function error(err) {
7272
return exits.error(err);
7373
},

0 commit comments

Comments
 (0)