tududi/backend/models
Chris bdeb5bbc32
Fix Telegram notification spam by marking JSON field as changed (#969)
Fixes issue where Sequelize wasn't detecting changes to the
channel_sent_at JSON field, causing markChannelAsSent() to not
persist updates to the database.

This caused the same notification to be sent via Telegram every
15 minutes (on each scheduler run) because the rate limiting
timestamp was never saved.

The fix adds this.changed('channel_sent_at', true) before save()
to explicitly mark the field as modified, which is required for
Sequelize to detect changes to JSON fields.

Impact: Reduces duplicate Telegram notifications from every 15min
to at most once per 24 hours per task.
2026-03-24 14:30:31 +02:00
..
action.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
api_token.js API Access (#495) 2025-11-07 15:19:30 +02:00
area.js Standardize UID implementation across backend 2025-08-06 15:54:45 +03:00
backup.js Feat backups (#686) 2025-12-09 08:00:46 +02:00
calendar_token.js Standardize UID implementation across backend 2025-08-06 15:54:45 +03:00
inbox_item.js Feat add inbox flow (#676) 2025-12-08 09:21:35 +02:00
index.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
note.js Notes page revamp! (#487) 2025-11-06 17:59:30 +02:00
notification.js Fix Telegram notification spam by marking JSON field as changed (#969) 2026-03-24 14:30:31 +02:00
permission.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
project.js Fix bug 722 (#737) 2025-12-28 07:51:15 +02:00
recurringCompletion.js Fix recurring structure (#646) 2025-12-04 13:29:37 +02:00
role.js chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
setting.js Scaffold smtp service (#590) 2025-11-24 17:58:09 +02:00
tag.js Fix tags deletion (#447) 2025-10-23 23:28:56 +03:00
task.js Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
task_attachment.js Add file attacmhments 2025-12-07 14:12:38 +02:00
task_event.js Fix bump issues (#651) 2025-12-04 18:19:40 +02:00
user.js Fix isEmail validation failure on valid emails during Docker setup (#835) 2026-02-11 15:42:11 +02:00
view.js Reorder elements (#687) 2025-12-09 10:51:51 +02:00