From 5b3e86e7bdee87afb8590027bda8723027ddedeb Mon Sep 17 00:00:00 2001 From: garrrikkotua Date: Wed, 15 Nov 2023 15:34:55 +0300 Subject: [PATCH] fix situation in data-sink-worker when activity exists in the db but marked deleted --- .../apps/data_sink_worker/src/repo/activity.data.ts | 1 + .../apps/data_sink_worker/src/repo/activity.repo.ts | 4 ++-- .../src/service/activity.service.ts | 13 ++++++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/services/apps/data_sink_worker/src/repo/activity.data.ts b/services/apps/data_sink_worker/src/repo/activity.data.ts index 927890871e..cd65dee2d5 100644 --- a/services/apps/data_sink_worker/src/repo/activity.data.ts +++ b/services/apps/data_sink_worker/src/repo/activity.data.ts @@ -22,6 +22,7 @@ export interface IDbActivity { url?: string sentiment: ISentimentAnalysisResult organizationId?: string + deletedAt?: string } export interface IDbActivityCreateData { diff --git a/services/apps/data_sink_worker/src/repo/activity.repo.ts b/services/apps/data_sink_worker/src/repo/activity.repo.ts index 86849f5ca7..9ce24f2be7 100644 --- a/services/apps/data_sink_worker/src/repo/activity.repo.ts +++ b/services/apps/data_sink_worker/src/repo/activity.repo.ts @@ -39,12 +39,12 @@ export default class ActivityRepository extends RepositoryBase