diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-26 20:48:09 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-26 20:48:09 +0200 |
commit | db3f5c0d1b5556e16c37704467b3599a6230be02 (patch) | |
tree | e74df1466e66900a284c65e270d56040d0dfde7e /util/src/entities/Emoji.ts | |
parent | :bug: fix unit tests (diff) | |
download | server-db3f5c0d1b5556e16c37704467b3599a6230be02.tar.xz |
:sparkles: use RelationId
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" }) |