mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-02-01 00:45:20 +01:00
Fix tutorials resetting
This commit is contained in:
parent
cd4173cfc3
commit
4d0e7ac995
@ -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
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user