This commit is contained in:
Davidson Gomes
2024-01-29 11:35:30 -03:00
parent 3f9e872e1c
commit cdf822291f
3 changed files with 30 additions and 31 deletions

View File

@@ -45,7 +45,7 @@ const messageSchema = new Schema<MessageRaw>({
participant: { type: String },
messageType: { type: String },
message: { type: Object },
source: { type: String, minlength: 3, enum: ['android', 'web', 'ios','unknown','desktop' ] },
source: { type: String, minlength: 3, enum: ['android', 'web', 'ios', 'unknown', 'desktop'] },
messageTimestamp: { type: Number, required: true },
owner: { type: String, required: true, minlength: 1 },
chatwoot: {