Tutorial saving
This commit is contained in:
parent
e4a679a6f8
commit
cd4173cfc3
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user