summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorFeatyre <twooter.0g179@simplelogin.co>2022-02-02 01:02:32 +0800
committerFeatyre <twooter.0g179@simplelogin.co>2022-02-02 01:02:32 +0800
commitfb5667e18c9175fdcdaab49f3035e0dfcd0fbc60 (patch)
treedd2b682b2c4c9358807502c24945a7f92f81e3d1 /util
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-fb5667e18c9175fdcdaab49f3035e0dfcd0fbc60.tar.xz
make everything in categories nullable
Diffstat (limited to 'util')
-rw-r--r--util/src/entities/Categories.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/src/entities/Categories.ts b/util/src/entities/Categories.ts
index 269e178f..18fc755d 100644
--- a/util/src/entities/Categories.ts
+++ b/util/src/entities/Categories.ts
@@ -17,16 +17,16 @@ import { BaseClassWithoutId } from "./BaseClass";
 @Entity("categories")
 export class Categories extends BaseClassWithoutId { // Not using snowflake
     
-    @PrimaryColumn()
+    @PrimaryColumn({ nullable: true })
 	id: number;
 
-    @Column()
+    @Column({ nullable: true })
     name: string;
 
     @Column({ type: "simple-json" })
     localizations: string;
 
-    @Column()
+    @Column({ nullable: true })
     is_primary: boolean;
 
 }
\ No newline at end of file