wsp-ms-core 1.0.87-beta-1.0 → 1.0.87-beta-1.2
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 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1910,21 +1910,11 @@ var InboxMysqlRepository = class {
|
|
|
1910
1910
|
var DefaultMysqlInboxRunner = class {
|
|
1911
1911
|
constructor(uowFactory, eventManager) {
|
|
1912
1912
|
this.topics = [];
|
|
1913
|
-
this.errors = [];
|
|
1914
1913
|
this.uowFactory = uowFactory;
|
|
1915
1914
|
this.eventManager = eventManager;
|
|
1916
1915
|
this.interval = Number(process.env.OUTBOX_RUNNER_INTERVAL_MS || 5e3);
|
|
1917
1916
|
this.maxEvents = Number(process.env.OUTBOX_RUNNER_MAX_EVENTS || 20);
|
|
1918
1917
|
}
|
|
1919
|
-
addError(error) {
|
|
1920
|
-
this.errors.push(error);
|
|
1921
|
-
}
|
|
1922
|
-
logErrors() {
|
|
1923
|
-
if (this.errors.length > 0) {
|
|
1924
|
-
console.error(this.errors);
|
|
1925
|
-
this.errors = [];
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
1918
|
async saveEvent(e, repository) {
|
|
1929
1919
|
let record = new InboxRecord(
|
|
1930
1920
|
UUID.create(),
|
|
@@ -1957,13 +1947,13 @@ var DefaultMysqlInboxRunner = class {
|
|
|
1957
1947
|
await this.saveEvent(e, inboxRepository);
|
|
1958
1948
|
});
|
|
1959
1949
|
} catch (error) {
|
|
1960
|
-
|
|
1950
|
+
console.log(error.toString());
|
|
1961
1951
|
}
|
|
1962
1952
|
}
|
|
1963
1953
|
});
|
|
1964
1954
|
}
|
|
1965
1955
|
async start() {
|
|
1966
|
-
console.log("[
|
|
1956
|
+
console.log("[inbox-runner]: start");
|
|
1967
1957
|
for (; ; ) {
|
|
1968
1958
|
await this.process();
|
|
1969
1959
|
}
|