summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-17 18:35:15 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-17 18:35:15 +0100
commit5bfa6f4b537ecdc786b5dab8f8cb5d027ada4db8 (patch)
tree32eb97b365e6be0a010607f9a6ddbffbfbb6eee2 /src
parent:bug: fix Mongodb BigInt (diff)
downloadserver-5bfa6f4b537ecdc786b5dab8f8cb5d027ada4db8.tar.xz
:zap: UserModel remove guild bigint array -> instead use MemberModel
Diffstat (limited to 'src')
-rw-r--r--src/models/User.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/models/User.ts b/src/models/User.ts

index 5dfe320c..5f73445f 100644 --- a/src/models/User.ts +++ b/src/models/User.ts
@@ -24,7 +24,6 @@ export interface User extends Document { flags: bigint; // TODO: automatically convert BigInt to BitField of UserFlags public_flags: bigint; hash: string; // hash of the password, salt is saved in password (bcrypt) - guilds: bigint[]; // array of guild ids the user is part of valid_tokens_since: number; // all tokens with a previous issue date are invalid user_settings: UserSettings; relationships: Relationship[]; @@ -128,7 +127,6 @@ export const UserSchema = new Schema({ flags: Types.Long, // TODO: automatically convert Types.Long to BitField of UserFlags public_flags: Types.Long, hash: String, // hash of the password, salt is saved in password (bcrypt) - guilds: [Types.Long], // array of guild ids the user is part of valid_tokens_since: Number, // all tokens with a previous issue date are invalid user_settings: { afk_timeout: Number,