Skip to content

Commit 019997b

Browse files
committed
fix: call SchemaController.getAllClasses with wrong type parameter
1 parent 31960b5 commit 019997b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GraphQL/loaders/schemaQueries.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const load = parseGraphQLSchema => {
6060
enforceMasterKeyAccess(auth);
6161

6262
const schema = await config.database.loadSchema({ clearCache: true });
63-
return (await schema.getAllClasses(true)).map(parseClass => ({
63+
return (await schema.getAllClasses({ clearCache: true })).map(parseClass => ({
6464
name: parseClass.className,
6565
schemaFields: transformToGraphQL(parseClass.fields),
6666
}));

src/Routers/SchemasRouter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function classNameMismatchResponse(bodyClass, pathClass) {
1616
function getAllSchemas(req) {
1717
return req.config.database
1818
.loadSchema({ clearCache: true })
19-
.then(schemaController => schemaController.getAllClasses(true))
19+
.then(schemaController => schemaController.getAllClasses({ clearCache: true }))
2020
.then(schemas => ({ response: { results: schemas } }));
2121
}
2222

0 commit comments

Comments
 (0)