From 144a46fa3cb420d72a005b5ec9e71925e4fa107d Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Wed, 6 Apr 2022 21:22:55 +0300 Subject: [PATCH] remove unused variable --- src/routes/api/v1/channels.ts | 1 - 1 file changed, 1 deletion(-) 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]);