summary refs log tree commit diff
path: root/src/models/User.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 17:06:00 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 17:06:00 +0200
commit79c4fd55fc210929ba550f55c1babdc88c0859c2 (patch)
treed4522d3cbbb8f565538737af544e6b44729fa995 /src/models/User.ts
parent:sparkles: add date of birth to user (diff)
downloadserver-79c4fd55fc210929ba550f55c1babdc88c0859c2.tar.xz
:bug: fix User Model guilds
Diffstat (limited to 'src/models/User.ts')
-rw-r--r--src/models/User.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/User.ts b/src/models/User.ts

index fb914fa0..9f447d91 100644 --- a/src/models/User.ts +++ b/src/models/User.ts
@@ -138,10 +138,10 @@ export const UserSchema = new Schema({ email: String, flags: Types.Long, // TODO: automatically convert Types.Long to BitField of UserFlags public_flags: Types.Long, + guilds: [Types.Long], // array of guild ids the user is part of user_data: { fingerprints: [String], 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: Date, // all tokens with a previous issue date are invalid relationships: [ {