tango-app-api-audit 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-audit",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1418,7 +1418,7 @@ export async function save( req, res ) {
1418
1418
  } catch ( error ) {
1419
1419
  const err = error.message || 'Internal Server Error';
1420
1420
  logger.error( { error: error, message: req.body, function: 'save' } );
1421
- return res.sendError( err );
1421
+ return res.sendError( err, 500 );
1422
1422
  }
1423
1423
  }
1424
1424