Skip to content

Commit

Permalink
feat: update fastify to v5 (#27)
Browse files Browse the repository at this point in the history
TypeScript update is required to consume Fastify v5 typings.
  • Loading branch information
mohd-akram authored Feb 17, 2025
1 parent 8bf1dab commit cb632c1
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 268 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"semantic-release-slack-bot": "^4.0.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"typescript": "^5.7.3"
},
"dependencies": {
"@fastify/cookie": "^8.3.0",
"@fastify/formbody": "^7.4.0",
"@fastify/multipart": "^7.5.0",
"@fastify/session": "^10.1.1",
"fastify": "^4.15.0",
"@fastify/cookie": "^11.0.2",
"@fastify/formbody": "^8.0.2",
"@fastify/multipart": "^9.0.3",
"@fastify/session": "^11.1.0",
"fastify": "^5.2.1",
"lodash": "^4.17.21",
"mime-types": "^2.1.35"
}
Expand Down
4 changes: 2 additions & 2 deletions src/authentication/login.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export const withLogin = (
req.session.set('adminUser', adminUser);

if (req.session.redirectTo) {
return reply.redirect(302, req.session.redirectTo);
return reply.redirect(req.session.redirectTo);
} else {
return reply.redirect(302, rootPath);
return reply.redirect(rootPath);
}
} else {
const login = await admin.renderLogin({
Expand Down
Loading

0 comments on commit cb632c1

Please sign in to comment.