Merge pull request #132 from IsraelXabregas/chatwoot-model-fix-schema-db

Fix chatwootSchema in chatwoot model to store reopen_conversation and conversation_pending options
This commit is contained in:
Davidson Gomes 2023-09-28 17:45:13 -03:00 committed by GitHub
commit 50be69f3d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
# 1.5.2 (Development)
### Fixed
* Fix chatwootSchema in chatwoot model to store reopen_conversation and conversation_pending options
# 1.5.1 (2023-09-17 13:50)
### Feature

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');