ACCEPTANCE CRITERIA:
– The close-out process must run automatically at midnight at each day.
– Group and habit streaks must be incremented or reset correctly based on the user activity of the past day.
– The process ensures that users are ranked correctly based on their current points.
– The process identifies all habits scheduled for the new day, opening all necessary userStats entries.
– All changes, including updates to ranks and streaks, are permanently saved in the database.
ACCEPTANCE CRITERIA: – The close-out process must run automatically at midnight at each day. – Group and habit streaks must be incremented or reset correctly based on the user activity of the past day. – The process ensures that users are ranked correctly based on their current points. – The process identifies all habits scheduled for the new day, opening all necessary userStats entries. – All changes, including updates to ranks and streaks, are permanently saved in the database.