diff --git a/src/routes/api/v1/channels.ts b/src/routes/api/v1/channels.ts index 80fea6b..916f2c1 100644 --- a/src/routes/api/v1/channels.ts +++ b/src/routes/api/v1/channels.ts @@ -81,7 +81,6 @@ router.delete( return res.status(400).json({ ...errors.INVALID_DATA, errors: validationErrors.array() }); } - const { name } = req.body; const { id } = req.params; const permissionCheckResult = await query("SELECT owner_id FROM channels WHERE id = $1", [id]);