@cap-js-community/event-queue 0.1.51 → 0.1.52
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js-community/event-queue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "event queue for cds",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"eslint-plugin-node": "11.1.0",
|
|
44
44
|
"sqlite3": "5.1.6",
|
|
45
45
|
"express": "4.18.2",
|
|
46
|
-
"@sap/cds": "7.
|
|
46
|
+
"@sap/cds": "7.1.0",
|
|
47
47
|
"eslint": "^8.39.0",
|
|
48
48
|
"eslint-config-prettier": "^8.8.0",
|
|
49
49
|
"eslint-plugin-jest": "^27.2.1",
|
|
@@ -702,7 +702,7 @@ class EventQueueProcessorBase {
|
|
|
702
702
|
} else if (runningChecks.length) {
|
|
703
703
|
await Promise.allSettled(runningChecks);
|
|
704
704
|
}
|
|
705
|
-
const checkAndUpdatePromise = new Promise((resolve) => {
|
|
705
|
+
const checkAndUpdatePromise = new Promise((resolve, reject) => {
|
|
706
706
|
executeInNewTransaction(this.__baseContext, "eventProcessing-isOutdatedAndKeepalive", async (tx) => {
|
|
707
707
|
const queueEntriesFresh = await tx.run(
|
|
708
708
|
SELECT.from(this.__eventQueueConfig.tableNameEventQueue)
|
|
@@ -747,7 +747,7 @@ class EventQueueProcessorBase {
|
|
|
747
747
|
delete this.__keepalivePromises[queueEntryFresh.ID];
|
|
748
748
|
});
|
|
749
749
|
resolve(eventOutdated);
|
|
750
|
-
});
|
|
750
|
+
}).catch(reject);
|
|
751
751
|
});
|
|
752
752
|
|
|
753
753
|
queueEntries.forEach((queueEntry) => (this.__keepalivePromises[queueEntry.ID] = checkAndUpdatePromise));
|