From da56a3ad8a6db1c2ba72fc6f2f363bd4c51f52de Mon Sep 17 00:00:00 2001 From: avicenan Date: Mon, 4 May 2026 17:34:56 +0700 Subject: [PATCH] fix(notification): indexing to ssender and recipient id --- src/entity/notification.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entity/notification.ts b/src/entity/notification.ts index 8069cbd..abd4643 100644 --- a/src/entity/notification.ts +++ b/src/entity/notification.ts @@ -10,8 +10,7 @@ import { import { User } from "./users"; -@Index("idx_notification_recipient_id", ["recipient_id"]) -@Index("idx_notification_sender_id", ["sender_id"]) +@Index(["sender", "recipient"]) @Entity("notifications") export class Notification { @PrimaryGeneratedColumn("uuid")