We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7466843 commit dc7966cCopy full SHA for dc7966c
lib/model.js
@@ -290,7 +290,7 @@ Model.prototype.$__handleSave = function(options, callback) {
290
291
const session = this.$session();
292
const asyncLocalStorage = this[modelDbSymbol].base.transactionAsyncLocalStorage?.getStore();
293
- if (!options.hasOwnProperty('session') && session != null) {
+ if (!saveOptions.hasOwnProperty('session') && session != null) {
294
saveOptions.session = session;
295
} else if (!options.hasOwnProperty('session') && asyncLocalStorage?.session != null) {
296
saveOptions.session = asyncLocalStorage.session;
0 commit comments