From aeae1621ec2bee0cdb91529281a78a56fc342e8f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 10 Oct 2024 04:35:41 +0530 Subject: [PATCH] chore: remove debug logs --- server/src/routes/storage.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/src/routes/storage.ts b/server/src/routes/storage.ts index 4553624b..efcc953f 100644 --- a/server/src/routes/storage.ts +++ b/server/src/routes/storage.ts @@ -87,7 +87,6 @@ router.delete('/runs/:id', requireSignIn, async (req, res) => { */ router.put('/runs/:id', requireSignIn, async (req, res) => { try { - console.log(`Params recieved:`, req.params) const recording = await Robot.findOne({ where: { 'recording_meta.id': req.params.id @@ -95,8 +94,6 @@ router.put('/runs/:id', requireSignIn, async (req, res) => { raw: true }); - console.log(`Recording found:`, recording) - if (!recording || !recording.recording_meta || !recording.recording_meta.id) { return res.status(404).send({ error: 'Recording not found' }); } @@ -141,8 +138,6 @@ router.put('/runs/:id', requireSignIn, async (req, res) => { const plainRun = run.toJSON(); - console.log(`Created run (plain object):`, plainRun); - return res.send({ browserId: id, runId: plainRun.runId, @@ -159,7 +154,6 @@ router.put('/runs/:id', requireSignIn, async (req, res) => { */ router.get('/runs/run/:id', requireSignIn, async (req, res) => { try { - console.log(`Params for GET /runs/run/:id`, req.params.id) const run = await Run.findOne({ where: { runId: req.params.runId }, raw: true }); if (!run) { return res.status(404).send(null); @@ -184,8 +178,6 @@ router.post('/runs/run/:id', requireSignIn, async (req, res) => { return res.status(404).send(false); } - console.log(`found run: ${run}`) - const plainRun = run.toJSON(); const recording = await Robot.findOne({ where: { 'recording_meta.id': plainRun.robotMetaId }, raw: true }); @@ -325,7 +317,6 @@ router.put('/schedule/:id/', requireSignIn, async (req, res) => { */ router.post('/runs/abort/:id', requireSignIn, async (req, res) => { try { - console.log(`Params for POST /runs/abort/:id`, req.params.id) const run = await Run.findOne({ where: { runId: req.params.id } }); if (!run) { return res.status(404).send(false);