Skip to content

Commit

Permalink
(api) remove duplicate toLowerCase for contentType in postNewMeasurem…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
ubergesundheit committed Feb 17, 2018
1 parent 1bbea43 commit d3e3968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/lib/controllers/measurementsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const postNewMeasurements = function postNewMeasurements (req, res, next) {
const contentType = (
luftdaten // if
? 'luftdaten' // then
: req.contentType().toLowerCase() // else
: req.getContentType() // else
);
if (Measurement.hasDecoder(contentType)) {
Box.findBoxById(boxId, { populate: false, lean: false })
Expand Down

0 comments on commit d3e3968

Please sign in to comment.