1
0
mirror of synced 2024-12-04 19:17:58 +01:00

Fix tutorials resetting

This commit is contained in:
Rin 2022-07-15 21:16:20 +01:00
parent cd4173cfc3
commit 4d0e7ac995

View File

@ -45,7 +45,12 @@ export default class GameModule extends Module {
break;
}
}
let storedTutorials = new Array(36).fill(false);
let user = await prisma.user.findFirst({
where: {
id: body.car!.userId!
}
});
let storedTutorials = user!.tutorials;
body.confirmedTutorials.forEach(
(idx) => storedTutorials[idx] = true
);