1
0
mirror of synced 2025-02-21 21:00:13 +01:00

Tutorial saving

This commit is contained in:
Rin 2022-07-15 19:55:15 +01:00
parent e4a679a6f8
commit cd4173cfc3

View File

@ -45,6 +45,19 @@ export default class GameModule extends Module {
break; break;
} }
} }
let storedTutorials = new Array(36).fill(false);
body.confirmedTutorials.forEach(
(idx) => storedTutorials[idx] = true
);
await prisma.user.update({
where: {
id: body.car!.userId!
},
data: {
tutorials: storedTutorials
}
});
let msg = { let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
} }