mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
🐛 fix models with type property
This commit is contained in:
parent
9a86b8613c
commit
cc00b2eb33
@ -87,7 +87,7 @@ export const ActivitySchema = {
|
||||
|
||||
export const ActivityBodySchema = {
|
||||
name: String,
|
||||
type: Number,
|
||||
type: { type: Number },
|
||||
$url: String,
|
||||
$created_at: Date,
|
||||
$timestamps: [
|
||||
|
@ -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: [
|
||||
|
@ -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 },
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user