Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't use decorateRequest with reference types #138

Closed
wants to merge 1 commit into from
Closed

fix: don't use decorateRequest with reference types #138

wants to merge 1 commit into from

Conversation

DRoet
Copy link
Contributor

@DRoet DRoet commented Dec 16, 2020

see FastifyDeprecation [FSTDEP006]
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0372e06 on DRoet:master into e201f78 on SerayaEryn:master.

@jillesme
Copy link

jillesme commented Jan 7, 2021

@SerayaEryn can we merge this? (:

fastify.decorateRequest('destroySession', destroySession)
fastify.addHook('preValidation', preValidation(options))
fastify.addHook('onSend', onSend(options))
fastify.addHook('onRequest', (req, reply, next) => {
req.sessionStore = options.store
req.session = {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor but I think this line is not necessary since it always gets assigned to either a new session or an existing one by the preValidation hook right? (I could have missed something, if so feel free to ignore this)

@DRoet
Copy link
Contributor Author

DRoet commented Apr 26, 2021

Closing this in favor of #143 and/or #147

@DRoet DRoet closed this Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning using fastify 3.9.x
4 participants