big ui refractor

This commit is contained in:
Rene Kievits
2025-12-23 02:23:44 +01:00
parent 4428a2b7be
commit eaed23a678
62 changed files with 2662 additions and 815 deletions

View File

@@ -97,7 +97,11 @@ export const processLesson = async (user, subjectId) => {
if (!item) throw new Error('Item not found');
item.srsLevel = 1;
item.nextReview = new Date();
const nextReview = new Date();
nextReview.setUTCHours(nextReview.getUTCHours() + 2);
nextReview.setUTCMinutes(0, 0, 0);
item.nextReview = nextReview;
await item.save();
return { success: true, item };