Skip to content

Commit 1dfb4a5

Browse files
fix(groupper): Remove sending duplicate key error (#438)
* Remove sending error * Lint
1 parent c98b769 commit 1dfb4a5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

workers/grouper/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import type {
1919
import type { RepetitionDBScheme } from '../types/repetition';
2020
import { DatabaseReadWriteError, DiffCalculationError, ValidationError } from '../../../lib/workerErrors';
2121
import { decodeUnsafeFields, encodeUnsafeFields } from '../../../lib/utils/unsafeFields';
22-
import HawkCatcher from '@hawk.so/nodejs';
2322
import { MS_IN_SEC } from '../../../lib/utils/consts';
2423
import DataFilter from './data-filter';
2524
import RedisHelper from './redisHelper';
@@ -177,7 +176,6 @@ export default class GrouperWorker extends Worker {
177176
* and we need to process this event as repetition
178177
*/
179178
if (e.code?.toString() === DB_DUPLICATE_KEY_ERROR) {
180-
HawkCatcher.send(new Error('[Grouper] MongoError: E11000 duplicate key error collection'));
181179
await this.handle(task);
182180

183181
return;

0 commit comments

Comments
 (0)