LinguistAI / user

1 stars 0 forks source link

Automatically update user streaks (without user interaction) #10

Open can-aslan opened 10 months ago

can-aslan commented 10 months ago

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?

selimcanglr commented 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.

KardelenCeren commented 5 months ago

I believe this is solved. We update the user streak when user logs in.