Skip to content

Commit

Permalink
as it is a promise, we should catch a potential promise rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jan 24, 2022
1 parent 6978eb0 commit 7adfe90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/connection.js
Expand Up @@ -506,7 +506,8 @@ Connection.prototype.transaction = function transaction(fn, options) {
throw err;
})
.finally(() => {
session.endSession();
session.endSession()
.catch(err => {});
});
});
};
Expand Down

0 comments on commit 7adfe90

Please sign in to comment.