wsp-ms-core 1.0.87-beta-1.2 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -649,7 +649,7 @@ declare class DefaultMysqlInboxRunner {
|
|
|
649
649
|
constructor(uowFactory: BasicUnitOfWorkFactory, eventManager: EventManager);
|
|
650
650
|
private saveEvent;
|
|
651
651
|
subscribeTo(topic: string): void;
|
|
652
|
-
process
|
|
652
|
+
private process;
|
|
653
653
|
start(): Promise<void>;
|
|
654
654
|
}
|
|
655
655
|
|
package/dist/index.d.ts
CHANGED
|
@@ -649,7 +649,7 @@ declare class DefaultMysqlInboxRunner {
|
|
|
649
649
|
constructor(uowFactory: BasicUnitOfWorkFactory, eventManager: EventManager);
|
|
650
650
|
private saveEvent;
|
|
651
651
|
subscribeTo(topic: string): void;
|
|
652
|
-
process
|
|
652
|
+
private process;
|
|
653
653
|
start(): Promise<void>;
|
|
654
654
|
}
|
|
655
655
|
|
package/dist/index.js
CHANGED
|
@@ -1867,7 +1867,7 @@ var DefaultMysqlInboxRunner = class {
|
|
|
1867
1867
|
async process() {
|
|
1868
1868
|
const uow = await this.uowFactory.create();
|
|
1869
1869
|
const inboxRepository = new InboxMysqlRepository(uow.connection);
|
|
1870
|
-
await uow.execute(async () => {
|
|
1870
|
+
return await uow.execute(async () => {
|
|
1871
1871
|
for (let topic of this.topics) {
|
|
1872
1872
|
try {
|
|
1873
1873
|
this.eventManager.route(topic, async (e) => {
|
|
@@ -1877,6 +1877,7 @@ var DefaultMysqlInboxRunner = class {
|
|
|
1877
1877
|
console.log(error.toString());
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
|
+
await this.eventManager.start();
|
|
1880
1881
|
});
|
|
1881
1882
|
}
|
|
1882
1883
|
async start() {
|