Switch to using generators

This commit is contained in:
Fredrik Adelöw
2020-06-05 09:16:55 +02:00
parent fe16d8ee8d
commit d68e4f2bd0
11 changed files with 295 additions and 240 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ export default async function createPlugin({
logger,
database,
}: PluginEnvironment) {
const ingestionModel = new LocationReaders();
const locationReader = new LocationReaders();
const db = await DatabaseManager.createDatabase(database, logger);
const entitiesCatalog = new DatabaseEntitiesCatalog(db);
@@ -37,7 +37,7 @@ export default async function createPlugin({
const higherOrderOperation = new HigherOrderOperations(
entitiesCatalog,
locationsCatalog,
ingestionModel,
locationReader,
logger,
);