diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:08:33 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:08:33 +1000 |
commit | f75a7bac16ea54e431077534c4842d847ec997f5 (patch) | |
tree | 61f8a05026ec47b0a08e25fac92acaf14cadc296 /src/util/entities/Categories.ts | |
parent | Generate IDs for entities by default (diff) | |
download | server-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.ts | 6 |
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 }) |