Skip to content

Commit dc7966c

Browse files
committed
fix tests
1 parent 7466843 commit dc7966c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Model.prototype.$__handleSave = function(options, callback) {
290290

291291
const session = this.$session();
292292
const asyncLocalStorage = this[modelDbSymbol].base.transactionAsyncLocalStorage?.getStore();
293-
if (!options.hasOwnProperty('session') && session != null) {
293+
if (!saveOptions.hasOwnProperty('session') && session != null) {
294294
saveOptions.session = session;
295295
} else if (!options.hasOwnProperty('session') && asyncLocalStorage?.session != null) {
296296
saveOptions.session = asyncLocalStorage.session;

0 commit comments

Comments
 (0)