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 } })