clean up
This commit is contained in:
parent
17d3c920d7
commit
59174ac2e0
@ -169,17 +169,15 @@ export default class TerminalModule extends Module {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Generate the response to the terminal (success messsage)
|
// Generate the response to the terminal (success messsage)
|
||||||
let resp = wm.wm.protobuf.LoadBookmarksResponse.encode({
|
let msg = {
|
||||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS
|
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS
|
||||||
});
|
};
|
||||||
|
|
||||||
let end = resp.finish();
|
// Encode the response
|
||||||
let r = res
|
let message = wm.wm.protobuf.LoadBookmarksResponse.encode(msg);
|
||||||
.header('Server', 'v388 wangan')
|
|
||||||
.header('Content-Type', 'application/x-protobuf; revision=8053')
|
// Send the response to the client
|
||||||
.header('Content-Length', end.length.toString())
|
common.sendResponse(message, res);
|
||||||
.status(200);
|
|
||||||
r.send(Buffer.from(end));
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -264,15 +262,11 @@ export default class TerminalModule extends Module {
|
|||||||
cars: cars
|
cars: cars
|
||||||
}
|
}
|
||||||
|
|
||||||
let resp = wm.wm.protobuf.CarSummary.encode(msg);
|
// Encode the response
|
||||||
let end = resp.finish();
|
let message = wm.wm.protobuf.CarSummary.encode(msg);
|
||||||
let r = res
|
|
||||||
.header('Server', 'v388 wangan')
|
|
||||||
.header('Content-Type', 'application/x-protobuf; revision=8053')
|
|
||||||
.header('Content-Length', end.length.toString())
|
|
||||||
.status(200);
|
|
||||||
r.send(Buffer.from(end));
|
|
||||||
|
|
||||||
|
// Send the response to the client
|
||||||
|
common.sendResponse(message, res);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -328,15 +322,11 @@ export default class TerminalModule extends Module {
|
|||||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encode the save terminal result response
|
// Encode the response
|
||||||
let resp = wm.wm.protobuf.SaveTerminalResultResponse.encode(msg);
|
let message = wm.wm.protobuf.SaveTerminalResultResponse.encode(msg);
|
||||||
let end = resp.finish();
|
|
||||||
let r = res
|
// Send the response to the client
|
||||||
.header('Server', 'v388 wangan')
|
common.sendResponse(message, res);
|
||||||
.header('Content-Type', 'application/x-protobuf; revision=8053')
|
|
||||||
.header('Content-Length', end.length.toString())
|
|
||||||
.status(200);
|
|
||||||
r.send(Buffer.from(end));
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user