From 56920237797aaa037af1fbe5438f475e26b0ce91 Mon Sep 17 00:00:00 2001 From: Artem Zahorodniuk Date: Tue, 8 Oct 2024 17:09:03 +0300 Subject: [PATCH] fix: activity for specific date should be cleared on new analytics uploading gf-604 --- .../src/modules/activity-logs/activity-log.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/modules/activity-logs/activity-log.repository.ts b/apps/backend/src/modules/activity-logs/activity-log.repository.ts index 42948149..a10425f3 100644 --- a/apps/backend/src/modules/activity-logs/activity-log.repository.ts +++ b/apps/backend/src/modules/activity-logs/activity-log.repository.ts @@ -41,7 +41,7 @@ class ActivityLogRepository implements Repository { await this.activityLogModel .query() .where("projectId", projectId) - .where("date", date) + .andWhere("date", date) .delete(); }