removed status from no segment responses

This commit is contained in:
Joe Dowd
2020-08-31 01:55:38 +01:00
parent 754d3762df
commit aa878482d3
2 changed files with 0 additions and 5 deletions

View File

@@ -17,7 +17,6 @@ module.exports = (req, res) => {
|| categories.length === 0 || categories.length === 0
) { ) {
res.status(400).json({ res.status(400).json({
status: 400,
message: 'Bad Format' message: 'Bad Format'
}); });
return; return;
@@ -29,7 +28,6 @@ module.exports = (req, res) => {
if (!userIsVIP) { if (!userIsVIP) {
res.status(403).json({ res.status(403).json({
status: 403,
message: 'Must be a VIP to mark videos.' message: 'Must be a VIP to mark videos.'
}); });
return; return;
@@ -65,14 +63,12 @@ module.exports = (req, res) => {
logger.error("Error submitting 'noSegment' marker for category '" + category + "' for video '" + videoID + "'"); logger.error("Error submitting 'noSegment' marker for category '" + category + "' for video '" + videoID + "'");
logger.error(err); logger.error(err);
res.status(500).json({ res.status(500).json({
status: 500,
message: "Internal Server Error: Could not write marker to the database." message: "Internal Server Error: Could not write marker to the database."
}); });
} }
}); });
res.status(200).json({ res.status(200).json({
status: 200,
submitted: categoriesToMark submitted: categoriesToMark
}); });
}; };

View File

@@ -40,7 +40,6 @@ describe('noSegmentRecords', () => {
}; };
let expected = { let expected = {
status: 200,
submitted: [ submitted: [
'outro', 'outro',
'shilling' 'shilling'