Skip to content

Commit e92cafc

Browse files
committed
fix delete bug
1 parent bdc7b42 commit e92cafc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ class MysqlSession {
8282
}
8383

8484
'delete'() {
85-
this.status = -1;
86-
this.data = {};
87-
return Promise.resolve();
85+
return this[initSessionData]().then(() => {
86+
this.status = -1;
87+
this.data = {};
88+
});
8889
}
8990

9091
flush() {

0 commit comments

Comments
 (0)