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-05-30 16:44:50 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-30 16:44:50 +0200
commitcc00b2eb335027e90aa734153eaa7e8a632a9018 (patch)
treed35e4ea719e11945373b57bd530972a7a238f70d /src/models/User.ts
parent1.3.11 (diff)
downloadserver-cc00b2eb335027e90aa734153eaa7e8a632a9018.tar.xz
:bug: fix models with type property
Diffstat (limited to 'src/models/User.ts')
-rw-r--r--src/models/User.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/User.ts b/src/models/User.ts

index ff7a3854..76922903 100644 --- a/src/models/User.ts +++ b/src/models/User.ts
@@ -160,7 +160,7 @@ export const UserSchema = new Schema({ { id: String, nickname: String, - type: Number, + type: { type: Number }, user_id: String, }, ], @@ -172,7 +172,7 @@ export const UserSchema = new Schema({ name: String, revoked: Boolean, show_activity: Boolean, - type: String, + type: { type: String }, verifie: Boolean, visibility: Number, },