mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 05:57:04 +03:00
routes/deleteLockCategories: fixed
This commit is contained in:
@@ -27,11 +27,11 @@ export async function deleteLockCategoriesEndpoint(req: DeleteLockCategoriesRequ
|
|||||||
} = req;
|
} = req;
|
||||||
|
|
||||||
// Check input data is valid
|
// Check input data is valid
|
||||||
if (!videoID ||
|
if (!videoID
|
||||||
!userID ||
|
|| !userID
|
||||||
!categories ||
|
|| !categories
|
||||||
!Array.isArray(categories) ||
|
|| !Array.isArray(categories)
|
||||||
categories.length === 0
|
|| categories.length === 0
|
||||||
) {
|
) {
|
||||||
return res.status(400).json({
|
return res.status(400).json({
|
||||||
message: "Bad Format",
|
message: "Bad Format",
|
||||||
|
|||||||
Reference in New Issue
Block a user