Open can-aslan opened 10 months ago
Using cron jobs scheduled for every 24 hours does the job. But if we update after login, this is not necessary is it?
Ah now I see what you mean. Yes, we shoulf schedule cron jobs then.
I believe this is solved. We update the user streak when user logs in.
The user streak must be updated regardless of that specific user's interaction, as their streaks must be shown correctly on the leaderboard when competing with friends.
We can schedule a task which runs every 24 hours to update all user streaks in the future.
How should we approach this?