create-app: update backend catalog setup

This commit is contained in:
Patrik Oldsberg
2020-08-12 19:39:42 +02:00
parent 93ee33bf7e
commit 4a58445d33
@@ -12,9 +12,10 @@ import { useHotCleanup } from '@backstage/backend-common';
export default async function createPlugin({
logger,
config,
database,
}: PluginEnvironment) {
const locationReader = new LocationReaders(logger);
const locationReader = new LocationReaders({ logger, config });
const db = await DatabaseManager.createDatabase(database, { logger });
const entitiesCatalog = new DatabaseEntitiesCatalog(db);