fix: placement of locationAnalyzer definition

Signed-off-by: Alexander Zerbe <alex@aqube.de>
This commit is contained in:
Alexander Zerbe
2021-03-21 11:17:17 +01:00
parent 4912f21ef6
commit 02cbb3673a
@@ -2,8 +2,7 @@ import { useHotCleanup } from '@backstage/backend-common';
import {
CatalogBuilder,
createRouter,
runPeriodically,
locationAnalyzer,
runPeriodically
} from '@backstage/plugin-catalog-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
@@ -14,6 +13,7 @@ export default async function createPlugin(env: PluginEnvironment): Promise<Rout
entitiesCatalog,
locationsCatalog,
higherOrderOperation,
locationAnalyzer,
} = await builder.build();
useHotCleanup(