querysub 0.380.0 → 0.381.0

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": "querysub",
3
- "version": "0.380.0",
3
+ "version": "0.381.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -328,22 +328,24 @@ export async function exposeErrorWatchService() {
328
328
  unmatchedErrors.push(error);
329
329
  }
330
330
 
331
- const pattern = await generatePatternForError(error);
332
- if (pattern) {
333
- const newEntry: SuppressionEntry = {
334
- id: nextId(),
335
- pattern,
336
- timeout: 0,
337
- createdTime: Date.now(),
338
- lastUpdatedTime: Date.now(),
339
- };
340
-
341
- suppressionCache.push(newEntry);
342
- void suppression.set(newEntry.id, newEntry);
343
- applySuppression(error, newEntry);
344
- queueDiscordNotification(newEntry.id, 1, true);
345
-
346
- void ErrorNotificationService.triggerSuppressionUpdate(newEntry.id);
331
+ if (!matchedSuppressionId) {
332
+ const pattern = await generatePatternForError(error);
333
+ if (pattern) {
334
+ const newEntry: SuppressionEntry = {
335
+ id: nextId(),
336
+ pattern,
337
+ timeout: 0,
338
+ createdTime: Date.now(),
339
+ lastUpdatedTime: Date.now(),
340
+ };
341
+
342
+ suppressionCache.push(newEntry);
343
+ void suppression.set(newEntry.id, newEntry);
344
+ applySuppression(error, newEntry);
345
+ queueDiscordNotification(newEntry.id, 1, true);
346
+
347
+ void ErrorNotificationService.triggerSuppressionUpdate(newEntry.id);
348
+ }
347
349
  }
348
350
 
349
351
  void ErrorNotificationService.triggerUnmatchedError(error);