mirror of
https://github.com/zoriya/flood.git
synced 2026-05-29 09:41:49 +00:00
server: handle some unhandled promise rejections
Unhandled Promise rejections are strictly prohibited and will lead to NodeJS process termination in the future Node release. This change also fixes some logics.
This commit is contained in:
@@ -80,7 +80,7 @@ export default (req, res) => {
|
||||
});
|
||||
|
||||
if (serviceInstances.clientGatewayService.hasError) {
|
||||
serviceInstances.clientGatewayService.testGateway();
|
||||
serviceInstances.clientGatewayService.testGateway().catch(console.error);
|
||||
}
|
||||
|
||||
// TODO: Handle empty or sub-optimal history states.
|
||||
|
||||
Reference in New Issue
Block a user