From c9870aa912e7894471bf7d2fd4c4d099f0ce5507 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Thu, 16 Jan 2025 11:13:50 +0100 Subject: [PATCH] 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(); } }