Skip to content

Commit

Permalink
fix: pass camera name when reprocessing image
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Sep 24, 2021
1 parent aa030da commit cbe7a57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/controllers/match.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ module.exports.reprocess = async (req, res) => {
if (!match) return res.status(BAD_REQUEST).error('No match found');

const results = await process.start({
camera: tryParseJSON(match.event) ? tryParseJSON(match.event).camera : null,
filename: match.filename,
tmp: `${STORAGE.PATH}/matches/${match.filename}`,
});
Expand Down

0 comments on commit cbe7a57

Please sign in to comment.