We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8664d7 commit a8e5dacCopy full SHA for a8e5dac
1 file changed
workers/grouper/src/index.ts
@@ -172,6 +172,10 @@ export default class GrouperWorker extends Worker {
172
usersAffected: incrementAffectedUsers ? 1 : 0,
173
} as GroupedEventDBScheme);
174
175
+ this.cache.del(`${task.projectId}:${JSON.stringify({
176
+ groupHash: uniqueEventHash,
177
+ })}`)
178
+
179
/**
180
* Increment daily affected users for the first event
181
*/
@@ -182,7 +186,7 @@ export default class GrouperWorker extends Worker {
182
186
* and we need to process this event as repetition
183
187
184
188
if (e.code?.toString() === DB_DUPLICATE_KEY_ERROR) {
185
- console.log('DB_DUPLICATE_KEY_ERROR', e);
189
+ console.log('DB_DUPLICATE_KEY_ERROR');
190
191
HawkCatcher.send(new Error('[Grouper] MongoError: E11000 duplicate key error collection'));
192
await this.handle(task);
0 commit comments