# Duplicate digests still

**URL:** <https://meta.discourse.org/t/duplicate-digests-still/38996>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [3 فبراير 2016، 9:37م UTC](https://meta.discourse.org/t/duplicate-digests-still/38996 "2016-02-03T21:37:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [3 فبراير 2016، 9:55م UTC](https://meta.discourse.org/t/duplicate-digests-still/38996/6 "2016-02-03T21:55:30Z")

</div>

The bug was that whenever we sent a digest (every 6 hours), we were not updating the “`last_emailed_at`” column. You could see that in the sent emails logs because there were lines not associated to a user (_ie. username was empty_). I fixed the code so that it properly updates the “`last_emailed_at`” column **and** added a migration to fix these old records. You just need to wait for the next run of the Digest job to get everything back to normal.

Does that make sense?

---

_[View the full topic](https://meta.discourse.org/t/duplicate-digests-still/38996)._
