summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-01 17:37:58 +0200
committerRory& <root@rory.gay>2026-07-03 15:29:57 +0200
commit3d314c673cc8e2bd141dd28e69e510ce40409e65 (patch)
tree58bf6fc0e8c1c3a1adb8c91fd0c9278db3a581b2
parentThrow proper error when emoji isnt found (diff)
downloadserver-ts-3d314c673cc8e2bd141dd28e69e510ce40409e65.tar.xz
Set index names and fix type for instance bans
-rw-r--r--src/database/entities/InstanceBan.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database/entities/InstanceBan.ts b/src/database/entities/InstanceBan.ts

index 03424e5a..879ad1a7 100644 --- a/src/database/entities/InstanceBan.ts +++ b/src/database/entities/InstanceBan.ts
@@ -30,15 +30,15 @@ export class InstanceBan extends BaseClass { @Column() reason: string; - @Index() - @Column({ nullable: true }) + @Index("instance_bans_user_id_idx", { type: "hash" }) + @Column({ type: "int8", nullable: true }) user_id?: string; - @Index() + @Index("instance_bans_fingerprint_idx", { type: "hash" }) @Column({ nullable: true }) fingerprint?: string; - @Index() + @Index("instance_bans_ip_address_idx", { type: "hash" }) @Column({ nullable: true }) ip_address?: string;