Digest email frequency not updating for existing users?

For future reference - if anyone uses this solution to fix a similar issue, it might be worth considering that if the site has been active for a while, some users MAY have changed their digest frequency or stopped it, so it would be useful to exclude those who have changed their settings already.