diff --git a/src/Controllers/index.js b/src/Controllers/index.js index 152de684fe..3c76b7ff88 100644 --- a/src/Controllers/index.js +++ b/src/Controllers/index.js @@ -226,6 +226,12 @@ export function getDatabaseAdapter(databaseURI, collectionPrefix, databaseOption } switch (protocol) { case 'postgres:': + case 'postgresql:': + return new PostgresStorageAdapter({ + uri: databaseURI, + collectionPrefix, + databaseOptions, + }); case 'postgresql:': return new PostgresStorageAdapter({ uri: databaseURI, diff --git a/src/Routers/SchemasRouter.js b/src/Routers/SchemasRouter.js index 1b72b93a68..54f73ceacc 100644 --- a/src/Routers/SchemasRouter.js +++ b/src/Routers/SchemasRouter.js @@ -16,7 +16,7 @@ function classNameMismatchResponse(bodyClass, pathClass) { function getAllSchemas(req) { return req.config.database .loadSchema({ clearCache: true }) - .then(schemaController => schemaController.getAllClasses({ clearCache: true })) + .then(schemaController => schemaController.getAllClasses(true)) .then(schemas => ({ response: { results: schemas } })); }