1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-01-31 21:35:21 +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
);