summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorFeatyre <twooter.0g179@simplelogin.co>2022-01-24 11:27:12 +0000
committerFeatyre <twooter.0g179@simplelogin.co>2022-01-24 11:27:12 +0000
commit5e868d431b431cc9f2a57efdbfa4d397e5188a3d (patch)
tree5f62f15a1f6a64f2a01c14d31bdecd45315dc104 /util/src
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-5e868d431b431cc9f2a57efdbfa4d397e5188a3d.tar.xz
Prep for Category db work
Diffstat (limited to 'util/src')
-rw-r--r--util/src/entities/Categories.ts6
-rw-r--r--util/src/util/Categories.ts1
-rw-r--r--util/src/util/index.ts1
3 files changed, 3 insertions, 5 deletions
diff --git a/util/src/entities/Categories.ts b/util/src/entities/Categories.ts
index 2cf89dbc..1d272118 100644
--- a/util/src/entities/Categories.ts
+++ b/util/src/entities/Categories.ts
@@ -15,7 +15,7 @@ import { BaseClassWithoutId } from "./BaseClass";
 // }]
 
 @Entity("categories")
-export class Categories extends BaseClassWithoutId { // Not using snowflake
+export class CategoryEntity extends BaseClassWithoutId { // Not using snowflake
     
     @PrimaryColumn()
 	id: number;
@@ -29,8 +29,4 @@ export class Categories extends BaseClassWithoutId { // Not using snowflake
     @Column()
     is_primary: boolean;
 
-}
-
-export interface DefaultCategoryValue { // TODO: Load Default Discord Categories
-
 }
\ No newline at end of file
diff --git a/util/src/util/Categories.ts b/util/src/util/Categories.ts
new file mode 100644
index 00000000..a3c69da7
--- /dev/null
+++ b/util/src/util/Categories.ts
@@ -0,0 +1 @@
+//TODO: populate default discord categories + init, get and set methods
\ No newline at end of file
diff --git a/util/src/util/index.ts b/util/src/util/index.ts
index 98e1146c..f7a273cb 100644
--- a/util/src/util/index.ts
+++ b/util/src/util/index.ts
@@ -1,6 +1,7 @@
 export * from "./ApiError";
 export * from "./BitField";
 export * from "./Token";
+//export * from "./Categories";
 export * from "./cdn";
 export * from "./Config";
 export * from "./Constants";