From 28a3ac68abc1713732ab01b0e1eeddac1bf70504 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Tue, 14 Jan 2025 12:13:00 +0100 Subject: [PATCH 1/2] fix: missing value assignedAt --- api/src/chat/repositories/subscriber.repository.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/chat/repositories/subscriber.repository.ts b/api/src/chat/repositories/subscriber.repository.ts index be088bf1..febb1d8f 100644 --- a/api/src/chat/repositories/subscriber.repository.ts +++ b/api/src/chat/repositories/subscriber.repository.ts @@ -96,6 +96,7 @@ export class SubscriberRepository extends BaseRepository< !!subscriberUpdates?.assignedTo, ); } + subscriberUpdates.assignedAt = new Date(); } } From c9870aa912e7894471bf7d2fd4c4d099f0ce5507 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Thu, 16 Jan 2025 11:13:50 +0100 Subject: [PATCH 2/2] fix: where assignedAt attribute gets updated --- api/src/chat/repositories/subscriber.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/chat/repositories/subscriber.repository.ts b/api/src/chat/repositories/subscriber.repository.ts index febb1d8f..41d4964d 100644 --- a/api/src/chat/repositories/subscriber.repository.ts +++ b/api/src/chat/repositories/subscriber.repository.ts @@ -95,8 +95,8 @@ export class SubscriberRepository extends BaseRepository< oldSubscriber, !!subscriberUpdates?.assignedTo, ); + subscriberUpdates.assignedAt = new Date(); } - subscriberUpdates.assignedAt = new Date(); } }