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 = {
|
export const ActivityBodySchema = {
|
||||||
name: String,
|
name: String,
|
||||||
type: Number,
|
type: { type: Number },
|
||||||
$url: String,
|
$url: String,
|
||||||
$created_at: Date,
|
$created_at: Date,
|
||||||
$timestamps: [
|
$timestamps: [
|
||||||
|
@ -165,7 +165,7 @@ export const AuditLogSchema = new Schema({
|
|||||||
messaged_id: String,
|
messaged_id: String,
|
||||||
count: String,
|
count: String,
|
||||||
id: String,
|
id: String,
|
||||||
type: String,
|
type: { type: Number },
|
||||||
role_name: String,
|
role_name: String,
|
||||||
},
|
},
|
||||||
changes: [
|
changes: [
|
||||||
|
@ -31,7 +31,7 @@ export const ChannelSchema = new Schema({
|
|||||||
allow: { type: String, get: toBigInt },
|
allow: { type: String, get: toBigInt },
|
||||||
deny: { type: String, get: toBigInt },
|
deny: { type: String, get: toBigInt },
|
||||||
id: String,
|
id: String,
|
||||||
type: Number,
|
type: { type: Number },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
@ -282,7 +282,7 @@ export const MessageSchema = new Schema({
|
|||||||
pinned: Boolean,
|
pinned: Boolean,
|
||||||
type: { type: Number },
|
type: { type: Number },
|
||||||
activity: {
|
activity: {
|
||||||
type: Number,
|
type: { type: Number },
|
||||||
party_id: String,
|
party_id: String,
|
||||||
},
|
},
|
||||||
flags: Types.Long,
|
flags: Types.Long,
|
||||||
|
@ -160,7 +160,7 @@ export const UserSchema = new Schema({
|
|||||||
{
|
{
|
||||||
id: String,
|
id: String,
|
||||||
nickname: String,
|
nickname: String,
|
||||||
type: Number,
|
type: { type: Number },
|
||||||
user_id: String,
|
user_id: String,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -172,7 +172,7 @@ export const UserSchema = new Schema({
|
|||||||
name: String,
|
name: String,
|
||||||
revoked: Boolean,
|
revoked: Boolean,
|
||||||
show_activity: Boolean,
|
show_activity: Boolean,
|
||||||
type: String,
|
type: { type: String },
|
||||||
verifie: Boolean,
|
verifie: Boolean,
|
||||||
visibility: Number,
|
visibility: Number,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user