dt-common-device 7.8.4 → 7.8.5
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.
|
@@ -68,6 +68,8 @@ let AlertRepository = (() => {
|
|
|
68
68
|
query.isRead = filters.isRead;
|
|
69
69
|
if (!filters.includeDeleted)
|
|
70
70
|
query.isDeleted = false;
|
|
71
|
+
if (!filters.includeSnoozed)
|
|
72
|
+
query.snoozeUntil = { $exists: false, $eq: null };
|
|
71
73
|
if (filters.type) {
|
|
72
74
|
if (Array.isArray(filters.type)) {
|
|
73
75
|
query.type = { $in: filters.type };
|
|
@@ -750,6 +750,10 @@ let AlertService = (() => {
|
|
|
750
750
|
if (!enhancedFilters.includeDeleted) {
|
|
751
751
|
enhancedFilters.includeDeleted = false;
|
|
752
752
|
}
|
|
753
|
+
// Example: Always exclude snoozed alerts unless explicitly requested
|
|
754
|
+
if (!enhancedFilters.includeSnoozed) {
|
|
755
|
+
enhancedFilters.includeSnoozed = false;
|
|
756
|
+
}
|
|
753
757
|
return enhancedFilters;
|
|
754
758
|
}
|
|
755
759
|
};
|