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…
Reference in New Issue
Block a user