summary refs log tree commit diff
path: root/src/util/entities/Categories.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-28 16:08:33 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-28 16:08:33 +1000
commitf75a7bac16ea54e431077534c4842d847ec997f5 (patch)
tree61f8a05026ec47b0a08e25fac92acaf14cadc296 /src/util/entities/Categories.ts
parentGenerate IDs for entities by default (diff)
downloadserver-f75a7bac16ea54e431077534c4842d847ec997f5.tar.xz
Use PrimaryIdColumn instead of PrimaryColumn in Invite and Category
Diffstat (limited to 'src/util/entities/Categories.ts')
-rw-r--r--src/util/entities/Categories.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/entities/Categories.ts b/src/util/entities/Categories.ts
index f12b237d..8cf1e3a4 100644
--- a/src/util/entities/Categories.ts
+++ b/src/util/entities/Categories.ts
@@ -1,5 +1,5 @@
-import { PrimaryColumn, Column, Entity } from "typeorm";
-import { BaseClassWithoutId } from "./BaseClass";
+import { Column, Entity } from "typeorm";
+import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";
 
 // TODO: categories:
 // [{
@@ -19,7 +19,7 @@ import { BaseClassWithoutId } from "./BaseClass";
 export class Categories extends BaseClassWithoutId {
 	// Not using snowflake
 
-	@PrimaryColumn()
+	@PrimaryIdColumn()
 	id: number;
 
 	@Column({ nullable: true })