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/RateLimit.ts | |
parent | :bug: fix unit tests (diff) | |
download | server-db3f5c0d1b5556e16c37704467b3599a6230be02.tar.xz |
:sparkles: use RelationId
Diffstat (limited to 'util/src/entities/RateLimit.ts')
-rw-r--r-- | util/src/entities/RateLimit.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/src/entities/RateLimit.ts b/util/src/entities/RateLimit.ts index 374a0759..3ac35df3 100644 --- a/util/src/entities/RateLimit.ts +++ b/util/src/entities/RateLimit.ts @@ -1,4 +1,4 @@ -import { Column, Entity, JoinColumn, ManyToOne } from "typeorm"; +import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; @@ -7,7 +7,7 @@ export class RateLimit extends BaseClass { @Column() id: "global" | "error" | string; // channel_239842397 | guild_238927349823 | webhook_238923423498 - @Column() + @RelationId((rate_limit: RateLimit) => rate_limit.user) user_id: string; @JoinColumn({ name: "user_id" }) |