From 9487fa7fcde93d3a15e10125d8b2a13b99057b39 Mon Sep 17 00:00:00 2001 From: Phillip Date: Fri, 10 May 2024 14:47:38 +0200 Subject: [PATCH] BC-7306 add index to deletionrequests.updatedAt (#4992) --- .../src/modules/deletion/repo/entity/deletion-request.entity.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/server/src/modules/deletion/repo/entity/deletion-request.entity.ts b/apps/server/src/modules/deletion/repo/entity/deletion-request.entity.ts index 618152d987f..9766c943e80 100644 --- a/apps/server/src/modules/deletion/repo/entity/deletion-request.entity.ts +++ b/apps/server/src/modules/deletion/repo/entity/deletion-request.entity.ts @@ -17,6 +17,7 @@ export interface DeletionRequestEntityProps { @Entity({ tableName: 'deletionrequests' }) @Unique({ properties: ['targetRefId', 'targetRefDomain'] }) @Index({ properties: ['createdAt'] }) +@Index({ properties: ['updatedAt'] }) export class DeletionRequestEntity extends BaseEntityWithTimestamps { @Property() @Index({ options: { expireAfterSeconds: SECONDS_OF_90_DAYS } })