summary refs log tree commit diff
path: root/util/src/entities/AuditLog.ts
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-10 20:34:45 +0200
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-10 20:34:45 +0200
commita11d693f434eb772836f93e6b5bcaac3cc409ec5 (patch)
tree5e4bd8bb484fe066e8b3ad339dcbbcabb066875f /util/src/entities/AuditLog.ts
parentforgot to fix primary columns on invites (diff)
downloadserver-a11d693f434eb772836f93e6b5bcaac3cc409ec5.tar.xz
Change enums to numbers
Diffstat (limited to 'util/src/entities/AuditLog.ts')
-rw-r--r--util/src/entities/AuditLog.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/util/src/entities/AuditLog.ts b/util/src/entities/AuditLog.ts
index ae9feb76..4b3536b6 100644
--- a/util/src/entities/AuditLog.ts
+++ b/util/src/entities/AuditLog.ts
@@ -55,11 +55,8 @@ export class AuditLog extends BaseClass {
 	@ManyToOne(() => User, (user: User) => user.id)
 	user: User;
 
-	@Column({
-		type: "simple-enum",
-		enum: AuditLogEvents,
-	})
-	action_type: AuditLogEvents;
+	@Column()
+	action_type: number;
 
 	@Column({ type: "simple-json", nullable: true })
 	options?: {