Skip to content

Commit

Permalink
fix(express-session-mikro-orm): fix express session package touch() test
Browse files Browse the repository at this point in the history
  • Loading branch information
Frantz Kati committed Dec 5, 2020
1 parent 8420da4 commit cf37f7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/express-session-mikro-orm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ const StoreFactory = (Store: any) => {
expires = data.cookie.expires
}

return this.orm.em
.nativeUpdate(
return this.orm.em.nativeUpdate(
'Session',
{
session_id: sid
Expand Down
2 changes: 2 additions & 0 deletions packages/express-session-mikro-orm/tests/session.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ it('The SessionStore.touch() updates expires field when session is touched', don
expect(error).to.be.null
expect(value).to.be.null

orm.em.clear()

orm.em
.findOne('Session', {
session_id: 3
Expand Down

0 comments on commit cf37f7f

Please sign in to comment.