mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 12:07:07 +03:00
reverted to 404 sith empty array
This commit is contained in:
@@ -29,5 +29,5 @@ module.exports = async function (req, res) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
res.status(200).json(segments);
|
res.status((segments.length === 0) ? 404 : 200).json(segments);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user