mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
fix bug in start page settings + a bit of progress
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = ( app, settings ) => {
|
||||
res.send( data );
|
||||
}
|
||||
} ).catch( error => {
|
||||
res.status( error.code ).send( error.message );
|
||||
res.status( error.code ?? 500 ).send( error.message );
|
||||
} );
|
||||
} );
|
||||
|
||||
@@ -35,7 +35,7 @@ module.exports = ( app, settings ) => {
|
||||
postHandler.handleCall( req.params.call, req.body, req.session ).then( data => {
|
||||
res.send( data );
|
||||
} ).catch( error => {
|
||||
res.status( error.code ).send( error.message );
|
||||
res.status( error.code ?? 500 ).send( error.message );
|
||||
} );
|
||||
} );
|
||||
};
|
||||
Reference in New Issue
Block a user