From f6a2dc3d6757218a22e404e572dcf5effe9d8857 Mon Sep 17 00:00:00 2001 From: Nafis Zaman Date: Mon, 11 Nov 2024 20:52:31 -0800 Subject: [PATCH] Remove excess logging --- cli/fetch.ts | 2 -- src/big-store.ts | 1 - src/index.ts | 3 --- 3 files changed, 6 deletions(-) diff --git a/cli/fetch.ts b/cli/fetch.ts index 2a1d020..8f83233 100644 --- a/cli/fetch.ts +++ b/cli/fetch.ts @@ -9,8 +9,6 @@ interface Args { } export default async (args: Args) => { - console.log('adasdasd'); - console.log(args); const res = await axios({ method: 'get', url: `${args.url}/v1/big_store/${args.asset}`, diff --git a/src/big-store.ts b/src/big-store.ts index 9586066..52c7604 100644 --- a/src/big-store.ts +++ b/src/big-store.ts @@ -50,7 +50,6 @@ export default (app: FastifyInstance, db: Db) => { }); const contentType = request.headers['content-type']; - console.log ('content-type', contentType); writeStream.on('error', (err) => { console.error(err); diff --git a/src/index.ts b/src/index.ts index 4adf8bf..6c72b51 100644 --- a/src/index.ts +++ b/src/index.ts @@ -86,7 +86,6 @@ app.get('/:collection', async (request, reply) => { const createPostPatchHandler = (isPatch: boolean) => async (request: FastifyRequest, reply: FastifyReply) => { const token = await authenticate(request); - console.log('token', token); if (!token) return unauthorized(reply); @@ -120,8 +119,6 @@ const createPostPatchHandler = (isPatch: boolean) => async (request: FastifyRequ const res = await db.set({ selector: { collection, id }, value, userId: token.sub, partialUpdate: isPatch }); - console.log(res); - if (res.type === 'error') { reply.code(res.code).send({ message: res.message }); return;