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