Skip to content

Commit

Permalink
correctly merge extension in authz plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Nov 8, 2023
1 parent dc106e5 commit 410976f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-authz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class PothosAuthZPlugin<Types extends SchemaTypes> extends BasePlugin<Typ
return {
...fieldConfig,
extensions: {
...fieldConfig,
...fieldConfig.extensions,
authz: {
directives: [
{
Expand Down Expand Up @@ -55,7 +55,7 @@ export class PothosAuthZPlugin<Types extends SchemaTypes> extends BasePlugin<Typ
return {
...typeConfig,
extensions: {
...typeConfig,
...typeConfig.extensions,
authz: {
directives: [
{
Expand Down

1 comment on commit 410976f

@vercel
Copy link

@vercel vercel bot commented on 410976f Nov 8, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.