fix: schema cache not cleared in some cases (#7771)

This commit is contained in:
Manuel
2022-01-13 03:04:49 +01:00
committed by GitHub
parent 66347dc44a
commit 3b92fa1ca9
2 changed files with 88 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ function classNameMismatchResponse(bodyClass, pathClass) {
function getAllSchemas(req) {
return req.config.database
.loadSchema({ clearCache: true })
.then(schemaController => schemaController.getAllClasses(true))
.then(schemaController => schemaController.getAllClasses({ clearCache: true }))
.then(schemas => ({ response: { results: schemas } }));
}