fix(middleware): remove unused destructuration
This commit is contained in:
parent
50f77b06e3
commit
4fbd778f00
|
|
@ -9,7 +9,7 @@ export default define.middleware(async (ctx) => {
|
||||||
const request = ctx.req
|
const request = ctx.req
|
||||||
|
|
||||||
// Update fresh context state with session
|
// Update fresh context state with session
|
||||||
ctx.state = { ...ctx.state, session: SessionStore.getFromRequest(request) }
|
ctx.state.session = SessionStore.getFromRequest(request)
|
||||||
|
|
||||||
// Get response
|
// Get response
|
||||||
const response = await ctx.next()
|
const response = await ctx.next()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue