Fix client presence cleanup index

This commit is contained in:
Ben
2026-06-07 22:46:46 -04:00
parent 3c33fcd3c4
commit 51e3afb7e7
4 changed files with 45 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ export class UniqueNonceIndex implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_unique_nonce" ON "client_entity" ("sessionId") WHERE "deletedAt" IS NOT NULL`
`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_unique_nonce" ON "client_entity" ("sessionId") WHERE "deletedAt" IS NULL`
);
}