diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-29 16:58:37 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-29 16:58:37 +0200 |
commit | ac84431cc2d85d2510a19c2726a6eb3d7ae3fc9c (patch) | |
tree | 633ce10e6ed565627f81bd694393ab42338bfa01 /util/src/entities/RateLimit.ts | |
parent | fix rate limit (diff) | |
download | server-ac84431cc2d85d2510a19c2726a6eb3d7ae3fc9c.tar.xz |
fix util
Diffstat (limited to 'util/src/entities/RateLimit.ts')
-rw-r--r-- | util/src/entities/RateLimit.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/util/src/entities/RateLimit.ts b/util/src/entities/RateLimit.ts index 3ac35df3..49af0416 100644 --- a/util/src/entities/RateLimit.ts +++ b/util/src/entities/RateLimit.ts @@ -7,12 +7,8 @@ export class RateLimit extends BaseClass { @Column() id: "global" | "error" | string; // channel_239842397 | guild_238927349823 | webhook_238923423498 - @RelationId((rate_limit: RateLimit) => rate_limit.user) - user_id: string; - - @JoinColumn({ name: "user_id" }) - @ManyToOne(() => User, (user) => user.id) - user: User; + @Column() // no relation as it also + executor_id: string; @Column() hits: number; |