Duplicate digests still

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?

1 Like