From 80ffefa42e28832ea6726064f7f5aa2f86139a6c Mon Sep 17 00:00:00 2001 From: Frank Zehelein Date: Sun, 1 Mar 2020 03:01:17 +0100 Subject: [PATCH] Fixed PostgreSQL transport example (#55) --- packages/bus-postgres/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/bus-postgres/README.md b/packages/bus-postgres/README.md index b71810b4..357d0675 100644 --- a/packages/bus-postgres/README.md +++ b/packages/bus-postgres/README.md @@ -18,9 +18,9 @@ Once installed, load the `BusPostgresModiule` to your inversify container alongs ```typescript import { Container } from 'inversify' import { LoggerModule } from '@node-ts/logger-core' -import { BusModule } from '@node-ts/bus-core' -import { WorkflowModule } from '@node-ts/bus-workflow' -import { BUS_POSTGRES_SYMBOLS, BusPostgresModule } from '@node-ts/bus-postgres' +import { BUS_SYMBOLS, BusModule, ApplicationBootstrap } from '@node-ts/bus-core' +import { BUS_WORKFLOW_SYMBOLS, WorkflowRegistry } from '@node-ts/bus-workflow' +import { BUS_POSTGRES_SYMBOLS, BusPostgresModule, PostgresConfiguration } from '@node-ts/bus-postgres' const container = new Container() container.load(new LoggerModule()) @@ -37,11 +37,11 @@ container.bind(BUS_POSTGRES_SYMBOLS.PostgresConfiguration).toConstantValue(confi // Run the application const application = async () => { - workflows = container.get(BUS_WORKFLOW_SYMBOLS.WorkflowRegistry) + const workflows = container.get(BUS_WORKFLOW_SYMBOLS.WorkflowRegistry) workflows.register(TestWorkflow, TestWorkflowData) // Register all workflows here await workflows.initializeWorkflows() - bootstrap = container.get(BUS_SYMBOLS.ApplicationBootstrap) + const bootstrap = container.get(BUS_SYMBOLS.ApplicationBootstrap) await bootstrap.initialize(container) } application @@ -54,4 +54,4 @@ Local development can be done with the aid of docker to run the required infrast ```bash docker run --name bus-postgres -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres -``` \ No newline at end of file +```