From cc00b2eb335027e90aa734153eaa7e8a632a9018 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 30 May 2021 16:44:50 +0200 Subject: :bug: fix models with type property --- src/models/User.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/models/User.ts') 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, }, -- cgit 1.5.1