intelica-library-components 1.1.46 → 1.1.47
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.
|
@@ -11010,14 +11010,14 @@ class NotificationOrchestratorService {
|
|
|
11010
11010
|
if (update.recipientId) {
|
|
11011
11011
|
const current = this.dispatchErrorsMapSubject.value;
|
|
11012
11012
|
const next = new Map(current);
|
|
11013
|
-
if ((update.
|
|
11013
|
+
if ((update.jobStatusCode ?? "").toLowerCase() === "failed") {
|
|
11014
11014
|
next.set(update.recipientId, {
|
|
11015
11015
|
recipientId: update.recipientId,
|
|
11016
11016
|
lastErrorMessage: update.lastErrorMessage ?? null,
|
|
11017
11017
|
notificationId: update.notificationId,
|
|
11018
11018
|
jobId: update.jobId ?? null,
|
|
11019
11019
|
channelCode: update.channelCode,
|
|
11020
|
-
statusCode: update.
|
|
11020
|
+
statusCode: update.jobStatusCode,
|
|
11021
11021
|
attempts: update.attempts,
|
|
11022
11022
|
lastAttemptAt: update.lastAttemptAt ?? null,
|
|
11023
11023
|
userId: update.userId ?? null,
|
|
@@ -11032,8 +11032,8 @@ class NotificationOrchestratorService {
|
|
|
11032
11032
|
}
|
|
11033
11033
|
if (typeof update.jobProcessedCount === "number" && typeof update.jobTotalCount === "number") {
|
|
11034
11034
|
this.setJobState({
|
|
11035
|
-
jobId:
|
|
11036
|
-
status:
|
|
11035
|
+
jobId: update.jobId,
|
|
11036
|
+
status: update.jobStatusCode?.toLowerCase(),
|
|
11037
11037
|
processedCount: update.jobProcessedCount,
|
|
11038
11038
|
totalCount: update.jobTotalCount,
|
|
11039
11039
|
processedNotificationsCount: update.jobProcessedNotificationsCount,
|
|
@@ -11042,8 +11042,8 @@ class NotificationOrchestratorService {
|
|
|
11042
11042
|
}
|
|
11043
11043
|
if (update.jobStatusCode?.toLowerCase() === "completed") {
|
|
11044
11044
|
this.setJobState({
|
|
11045
|
-
jobId: this.
|
|
11046
|
-
status:
|
|
11045
|
+
jobId: this.jobStateSubject.value.jobId,
|
|
11046
|
+
status: this.jobStateSubject.value.status,
|
|
11047
11047
|
processedCount: this.jobStateSubject.value.processedCount,
|
|
11048
11048
|
totalCount: this.jobStateSubject.value.totalCount,
|
|
11049
11049
|
processedNotificationsCount: this.jobStateSubject.value.processedNotificationsCount,
|
|
@@ -11051,6 +11051,9 @@ class NotificationOrchestratorService {
|
|
|
11051
11051
|
});
|
|
11052
11052
|
}
|
|
11053
11053
|
else if (this.jobStateSubject.value.status === "pending") {
|
|
11054
|
+
this.setJobState({ ...this.jobStateSubject.value, status: "pending" });
|
|
11055
|
+
}
|
|
11056
|
+
else if (this.jobStateSubject.value.status === "running") {
|
|
11054
11057
|
this.setJobState({ ...this.jobStateSubject.value, status: "running" });
|
|
11055
11058
|
}
|
|
11056
11059
|
}
|