Skip to content

Commit

Permalink
fix: Freeze the resolver context (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain authored Jul 4, 2022
1 parent 45f359d commit 247dccb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/schema/src/hooks/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { compose } from '@feathersjs/hooks'
import { Resolver, ResolverStatus } from '../resolver'

const getContext = <H extends HookContext>(context: H) => {
return {
return Object.freeze({
...context,
params: {
params: Object.freeze({
...context.params,
query: {}
}
}
query: Object.freeze({})
})
})
}

const getData = <H extends HookContext>(context: H) => {
Expand Down

0 comments on commit 247dccb

Please # to comment.