Skip to content

Commit

Permalink
#622 rename variable of response from update review status function
Browse files Browse the repository at this point in the history
Co-authored-by: Grigorii Nechitailo <necgregory@gmail.com>
  • Loading branch information
grindarius and veckatimest authored May 31, 2024
1 parent 660f7e0 commit 5f6ba50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/detections/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ router.post('/:streamId/detections/:start/review', (req, res) => {
const { status, classification, classifier, classifierJob } = params
return await createOrUpdate({ userId, streamId, start, status, classification, classifier, classifierJob })
})
.then((status) => res.send(status))
.then((reviewResult) => res.send(reviewResult))
.catch(httpErrorHandler(req, res, 'Failed reviewing the detection'))
})

Expand Down

0 comments on commit 5f6ba50

Please sign in to comment.