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