1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00

🐛 fix models with type property

This commit is contained in:
Flam3rboy 2021-05-30 16:44:50 +02:00
parent 9a86b8613c
commit cc00b2eb33
5 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@ export const ActivitySchema = {
export const ActivityBodySchema = {
name: String,
type: Number,
type: { type: Number },
$url: String,
$created_at: Date,
$timestamps: [

View File

@ -165,7 +165,7 @@ export const AuditLogSchema = new Schema({
messaged_id: String,
count: String,
id: String,
type: String,
type: { type: Number },
role_name: String,
},
changes: [

View File

@ -31,7 +31,7 @@ export const ChannelSchema = new Schema({
allow: { type: String, get: toBigInt },
deny: { type: String, get: toBigInt },
id: String,
type: Number,
type: { type: Number },
},
],
});

View File

@ -282,7 +282,7 @@ export const MessageSchema = new Schema({
pinned: Boolean,
type: { type: Number },
activity: {
type: Number,
type: { type: Number },
party_id: String,
},
flags: Types.Long,

View File

@ -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,
},