openwisp / openwisp-notifications

Notifications module of OpenWISP
https://openwisp.io/docs/dev/notifications/
GNU General Public License v3.0
41 stars 42 forks source link

[bug] Task update_superuser_notification_settings may be triggered also when not needed #283

Open nemesifier opened 4 months ago

nemesifier commented 4 months ago

There's far too many occurrences of this task in some instances which pollutes the logs. If this task is meant to be used only for staff users, now is being executed on all users. I suspect this task is called when any user logs in (which updates the last login date).