Skip to content

Commit 79ed425

Browse files
committed
fix: remove useless config
1 parent bb3eef0 commit 79ed425

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/GraphQL/loaders/schemaMutations.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const load = parseGraphQLSchema => {
3131
const { name, schemaFields } = deepcopy(args);
3232
const { config, auth } = context;
3333

34-
enforceMasterKeyAccess(auth, config);
34+
enforceMasterKeyAccess(auth);
3535

3636
if (auth.isReadOnly) {
3737
throw createSanitizedError(
@@ -80,7 +80,7 @@ const load = parseGraphQLSchema => {
8080
const { name, schemaFields } = deepcopy(args);
8181
const { config, auth } = context;
8282

83-
enforceMasterKeyAccess(auth, config);
83+
enforceMasterKeyAccess(auth);
8484

8585
if (auth.isReadOnly) {
8686
throw createSanitizedError(
@@ -131,7 +131,7 @@ const load = parseGraphQLSchema => {
131131
const { name } = deepcopy(args);
132132
const { config, auth } = context;
133133

134-
enforceMasterKeyAccess(auth, config);
134+
enforceMasterKeyAccess(auth);
135135

136136
if (auth.isReadOnly) {
137137
throw createSanitizedError(

src/GraphQL/loaders/schemaQueries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const load = parseGraphQLSchema => {
3131
const { name } = deepcopy(args);
3232
const { config, auth } = context;
3333

34-
enforceMasterKeyAccess(auth, config);
34+
enforceMasterKeyAccess(auth);
3535

3636
const schema = await config.database.loadSchema({ clearCache: true });
3737
const parseClass = await getClass(name, schema);
@@ -57,7 +57,7 @@ const load = parseGraphQLSchema => {
5757
try {
5858
const { config, auth } = context;
5959

60-
enforceMasterKeyAccess(auth, config);
60+
enforceMasterKeyAccess(auth);
6161

6262
const schema = await config.database.loadSchema({ clearCache: true });
6363
return (await schema.getAllClasses(true)).map(parseClass => ({

0 commit comments

Comments
 (0)