No need to return the same data which the route got passed in

This commit is contained in:
Johannes Zellner
2019-12-05 18:02:57 +01:00
parent 2c8e6330ce
commit dbdf86edfc
+1 -1
View File
@@ -69,7 +69,7 @@ function add(req, res, next) {
domains.add(req.body.domain, data, auditSource.fromRequest(req), function (error) {
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(201, { domain: req.body.domain, config: req.body.config }));
next(new HttpSuccess(201, {}));
});
}