Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Widget Works Modification

* [WIDGET-WORKS] Silence "Parent message not found" warnings during history sync to prevent CPU overload and subsequent 401 disconnects.
* [WIDGET-WORKS] Fix `PrismaClientValidationError` in `messages.update` (missing `Message` relation) by guarding `messageUpdate.create` calls.
* [WIDGET-WORKS] Guard `messages.update` cache cleanup with a derived key and optional `MESSAGE_UPDATE_CACHE_DELETE_DISABLED` flag to prevent cache.delete crash-loops.
* [WIDGET-WORKS] Save messages before Chatwoot sync in `/message/sendText` to avoid missing `chatwootMessageId` and log async sync failures.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1565,9 +1565,10 @@ export class BaileysStartupService extends ChannelStartupService {
if (message.messageId) {
await this.prismaRepository.messageUpdate.create({ data: message });
} else {
this.logger.warn(
`[WIDGET-WORKS] Skipping messageUpdate.create for key ${key.id}: Parent message not found.`,
);
// [WIDGET-WORKS] Silenced warning to prevent log flood during history sync
// this.logger.warn(
// `[WIDGET-WORKS] Skipping messageUpdate.create for key ${key.id}: Parent message not found.`,
// );
}
}

Expand Down