summary refs log tree commit diff
diff options
context:
space:
mode:
authorFeatyre <twooter.0g179@simplelogin.co>2022-02-02 01:06:42 +0800
committerFeatyre <twooter.0g179@simplelogin.co>2022-02-02 01:06:42 +0800
commit299b9b8d579da0f29b8be533be08e9fa7d50f147 (patch)
tree1ff0fc5f05476b97053f7cb79497714b41ab789b
parentmake everything in categories nullable (diff)
downloadserver-299b9b8d579da0f29b8be533be08e9fa7d50f147.tar.xz
Fix primarycolum being assigned to nullable = true
-rw-r--r--util/src/entities/Categories.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/Categories.ts b/util/src/entities/Categories.ts
index 18fc755d..a3c1280f 100644
--- a/util/src/entities/Categories.ts
+++ b/util/src/entities/Categories.ts
@@ -17,7 +17,7 @@ import { BaseClassWithoutId } from "./BaseClass";
 @Entity("categories")
 export class Categories extends BaseClassWithoutId { // Not using snowflake
     
-    @PrimaryColumn({ nullable: true })
+    @PrimaryColumn()
 	id: number;
 
     @Column({ nullable: true })