Skip to content

Commit 50be69f

Browse files
Merge pull request #132 from IsraelXabregas/chatwoot-model-fix-schema-db
Fix chatwootSchema in chatwoot model to store reopen_conversation and conversation_pending options
2 parents 5a75e4d + 7835f32 commit 50be69f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
# 1.5.2 (Development)
3+
4+
### Fixed
5+
6+
* Fix chatwootSchema in chatwoot model to store reopen_conversation and conversation_pending options
7+
18
# 1.5.1 (2023-09-17 13:50)
29

310
### Feature

src/whatsapp/models/chatwoot.model.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const chatwootSchema = new Schema<ChatwootRaw>({
2424
name_inbox: { type: String, required: true },
2525
sign_msg: { type: Boolean, required: true },
2626
number: { type: String, required: true },
27+
reopen_conversation: { type: Boolean, required: true },
28+
conversation_pending: { type: Boolean, required: true },
2729
});
2830

2931
export const ChatwootModel = dbserver?.model(ChatwootRaw.name, chatwootSchema, 'chatwoot');

0 commit comments

Comments
 (0)