mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-11-28 01:11:00 +01:00
fix broken gtWing saving
This commit is contained in:
parent
b58c730e5d
commit
70f4455784
@ -1021,6 +1021,24 @@ export default class TerminalModule extends Module {
|
||||
});
|
||||
|
||||
|
||||
app.post('/method/save_screenshot', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.SaveScreenshotRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
};
|
||||
|
||||
// Encode the response
|
||||
let message = wm.wm.protobuf.SaveScreenshotResponse.encode(msg);
|
||||
|
||||
// Send the response to the client
|
||||
common.sendResponse(message, res);
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
app.post('/method/load_unreceived_user_items', async (req, res) => {
|
||||
|
||||
@ -1040,24 +1058,6 @@ export default class TerminalModule extends Module {
|
||||
})
|
||||
|
||||
|
||||
app.post('/method/save_screenshot', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.SaveScreenshotRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
};
|
||||
|
||||
// Encode the response
|
||||
let message = wmsrv.wm.protobuf.SaveScreenshotResponse.encode(msg);
|
||||
|
||||
// Send the response to the client
|
||||
common.sendResponse(message, res);
|
||||
})
|
||||
|
||||
|
||||
app.post('/method/check_item_receivable_cars', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
|
@ -134,6 +134,14 @@ export async function saveGhostBattleResult(body: wm.protobuf.SaveGameResultRequ
|
||||
data: {
|
||||
...dataGhost,
|
||||
...dataCar,
|
||||
}
|
||||
});
|
||||
|
||||
await prisma.carGTWing.update({
|
||||
where: {
|
||||
dbId: body.carId
|
||||
},
|
||||
data:{
|
||||
...dataCarGTWing,
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user