diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Activity.ts | 2 | ||||
-rw-r--r-- | src/models/AuditLog.ts | 2 | ||||
-rw-r--r-- | src/models/Channel.ts | 2 | ||||
-rw-r--r-- | src/models/Message.ts | 2 | ||||
-rw-r--r-- | src/models/User.ts | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/models/Activity.ts b/src/models/Activity.ts index 17abd1ca..1307514d 100644 --- a/src/models/Activity.ts +++ b/src/models/Activity.ts @@ -87,7 +87,7 @@ export const ActivitySchema = { export const ActivityBodySchema = { name: String, - type: Number, + type: { type: Number }, $url: String, $created_at: Date, $timestamps: [ diff --git a/src/models/AuditLog.ts b/src/models/AuditLog.ts index c1f83c13..02b2c444 100644 --- a/src/models/AuditLog.ts +++ b/src/models/AuditLog.ts @@ -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: [ diff --git a/src/models/Channel.ts b/src/models/Channel.ts index bde5256a..19d5c32b 100644 --- a/src/models/Channel.ts +++ b/src/models/Channel.ts @@ -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 }, }, ], }); diff --git a/src/models/Message.ts b/src/models/Message.ts index c8ea8395..d3651ee2 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts @@ -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, 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, }, |