diff options
author | Featyre <twooter.0g179@simplelogin.co> | 2022-01-24 11:27:12 +0000 |
---|---|---|
committer | Featyre <twooter.0g179@simplelogin.co> | 2022-01-24 11:27:12 +0000 |
commit | dc3fb1f519e1f2fec7a8bc1117b616e7ccdee585 (patch) | |
tree | 36b537453d926ed04cf48fbe20ceeae5560b176a /util | |
parent | Merge branch 'fosscord:master' into master (diff) | |
download | server-dc3fb1f519e1f2fec7a8bc1117b616e7ccdee585.tar.xz |
Prep for Category db work
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Categories.ts | 6 | ||||
-rw-r--r-- | util/src/util/Categories.ts | 1 | ||||
-rw-r--r-- | util/src/util/index.ts | 1 |
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"; |