Skip to content

Commit

Permalink
%v minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Phara0h committed Sep 5, 2019
1 parent e9642d6 commit 5d8d5c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

#### 1.2.0
#### v1.2.0

> 5 September 2019
- init push [`7a1fd27`](https://github.com/Phara0h/fastify-good-sessions/commit/7a1fd27a931081193198c45de3420e85a4766870)
- Fixed some misc bugs [`517b56c`](https://github.com/Phara0h/fastify-good-sessions/commit/517b56c6393ab326fc7adf08062b96898fb20ea0)
- Initial commit [`f7c032c`](https://github.com/Phara0h/fastify-good-sessions/commit/f7c032c6520ad7447dbe56bfb2df24619b66da84)
- %v minor fix [`e9642d6`](https://github.com/Phara0h/fastify-good-sessions/commit/e9642d6630459c397a53d2ca3b2d11e695dca6eb)
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function newSession (secret, maxAge, done) {
}

function destroySession (done) {
const request = this
const request = this;
request.sessionStore.destroy(request.session.sessionId, (err) => {
request.session = null
done(err)
Expand Down Expand Up @@ -205,7 +205,6 @@ function shouldSaveSession (request, cookieOpts, saveUninitialized) {
return false
}

if(request.)
if(request.session._dataChanged) {
request.session._dataChanged = false;
return true;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastify-good-sessions",
"version": "1.2.0",
"version": "1.2.1",
"description": "A good fastify sessions plugin focused on speed.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5d8d5c0

Please sign in to comment.