Fix chatwootSchema in chatwoot model to store reopen_conversation and conversation_pending options

This commit is contained in:
Israel Xabregas Ramos
2023-09-25 20:45:14 -03:00
parent 4dfe6bdbe8
commit 7835f32c8b
2 changed files with 9 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ const chatwootSchema = new Schema<ChatwootRaw>({
name_inbox: { type: String, required: true },
sign_msg: { type: Boolean, required: true },
number: { type: String, required: true },
reopen_conversation: { type: Boolean, required: true },
conversation_pending: { type: Boolean, required: true },
});
export const ChatwootModel = dbserver?.model(ChatwootRaw.name, chatwootSchema, 'chatwoot');