diff options
Diffstat (limited to 'util/src/entities/Emoji.ts')
-rw-r--r-- | util/src/entities/Emoji.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/src/entities/Emoji.ts b/util/src/entities/Emoji.ts index 366549db..b31ddb3b 100644 --- a/util/src/entities/Emoji.ts +++ b/util/src/entities/Emoji.ts @@ -1,4 +1,4 @@ -import { Column, Entity, JoinColumn, ManyToMany, ManyToOne } from "typeorm"; +import { Column, Entity, JoinColumn, ManyToMany, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { Guild } from "./Guild"; import { Role } from "./Role"; @@ -30,7 +30,7 @@ export class Emoji extends BaseClass { @Column() url: string; - @Column("simple-array") + @RelationId((emoji: Emoji) => emoji.roles) role_ids: string[]; @JoinColumn({ name: "role_ids" }) |