diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-01 23:34:55 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-01 23:34:55 +0200 |
commit | 295159fc4a7d32ffa7686ff7df510d098a1794f9 (patch) | |
tree | 51dd0493766f0eda1551dd44f546e8189aafa182 /util/src/entities/Member.ts | |
parent | :sparkles: generate open api schema based on body and db entities (diff) | |
download | server-295159fc4a7d32ffa7686ff7df510d098a1794f9.tar.xz |
:bug: fix entity types and projection
Diffstat (limited to 'util/src/entities/Member.ts')
-rw-r--r-- | util/src/entities/Member.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/src/entities/Member.ts b/util/src/entities/Member.ts index d2d78bb9..e1773730 100644 --- a/util/src/entities/Member.ts +++ b/util/src/entities/Member.ts @@ -12,6 +12,7 @@ import { } from "../interfaces"; import { HTTPError } from "lambert-server"; import { Role } from "./Role"; +import { ReadState } from "./ReadState"; @Entity("members") export class Member extends BaseClass { @@ -53,8 +54,8 @@ export class Member extends BaseClass { settings: UserGuildSettings; // TODO: update - @Column({ type: "simple-json" }) - read_state: Record<string, string | null>; + // @Column({ type: "simple-json" }) + // read_state: ReadState; static async IsInGuildOrFail(user_id: string, guild_id: string) { if (await Member.count({ id: user_id, guild: { id: guild_id } })) return true; @@ -206,7 +207,7 @@ export class Member extends BaseClass { Member.insert({ ...member, roles: undefined, - read_state: {}, + // read_state: {}, settings: { channel_overrides: [], message_notifications: 0, |