From 57b2e36abda1f3536bdd5e4b837c084f0487f05d Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 29 Apr 2023 01:05:49 +0330 Subject: [PATCH] small cleanup --- lib/api/controllers/collections/deleteCollection.ts | 2 -- store/collections.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/api/controllers/collections/deleteCollection.ts b/lib/api/controllers/collections/deleteCollection.ts index 97d20e6..6cc27ef 100644 --- a/lib/api/controllers/collections/deleteCollection.ts +++ b/lib/api/controllers/collections/deleteCollection.ts @@ -8,8 +8,6 @@ import getPermission from "@/lib/api/getPermission"; import fs from "fs"; export default async function (collection: { id: number }, userId: number) { - console.log(collection.id); - if (!collection.id) return { response: "Please choose a valid collection.", status: 401 }; diff --git a/store/collections.ts b/store/collections.ts index c0c0663..9fd6ca5 100644 --- a/store/collections.ts +++ b/store/collections.ts @@ -76,8 +76,6 @@ const useCollectionStore = create()((set) => ({ method: "DELETE", }); - console.log(id); - const data = await response.json(); console.log(data);