diff --git a/backend/models/notification.js b/backend/models/notification.js index 5888dfc..253aa40 100644 --- a/backend/models/notification.js +++ b/backend/models/notification.js @@ -309,6 +309,7 @@ module.exports = (sequelize) => { const sentTimes = this.channel_sent_at || {}; sentTimes[channel] = new Date().toISOString(); this.channel_sent_at = sentTimes; + this.changed('channel_sent_at', true); await this.save(); return this; };