mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-09 21:32:20 -06:00
fix: Improve database saving functionality
This commit fixes an issue with data being inconsistently saved in the database. It introduces a new configuration option to enable/disable saving of chat and contact data, as well as message updates and historic data. The following files were modified: - .env.example - CHANGELOG.md - src/api/services/channels/whatsapp.baileys.service.ts - src/config/env.config.ts The 'DATABASE_SAVE_DATA_NEW_MESSAGE', 'DATABASE_SAVE_DATA_MESSAGE_UPDATE', 'DATABASE_SAVE_DATA_CONTACTS', 'DATABASE_SAVE_DATA_CHATS', and 'DATABASE_SAVE_DATA_HISTORIC' options have been added to the 'SaveData' interface in 'env.config.ts'. These options control whether new messages, message updates, contacts, chats, and historic data are saved in the database, respectively. The 'DATABASE_SAVE_DATA_HISTORIC' option is new and allows for more granular control over what data is saved. The 'WhatsappBaileysService' in 'whatsapp.baileys.service.ts' has been updated to check these configuration options before saving data in the database. This ensures that data is only saved when explicitly allowed. The 'CHANGELOG.md' has been updated to reflect these changes.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
### Fixed
|
||||
|
||||
* Resolved issue with Chatwoot not receiving messages sent by Typebot
|
||||
* Fixed the function of saving or not saving data in the database
|
||||
|
||||
# 2.0.0-beta (2024-07-14 17:00)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user