Skip to content

Commit

Permalink
removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
arralia committed Dec 13, 2023
1 parent 9d1ad98 commit 3d597b5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions routes/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ catalogRouter.get('/', async (req, res) => {
const allInfo = await db.query(`SELECT * from catalog;`);
res.status(200).json(keysToCamel(allInfo));
} catch (err) {
console.log(err);
res.status(500).send(err.message);
}
});
Expand All @@ -23,7 +22,6 @@ catalogRouter.get('/:id', async (req, res) => {
const allUsers = await db.query(`SELECT * FROM catalog WHERE id = $1;`, [id]);
res.status(200).json(keysToCamel(allUsers));
} catch (err) {
console.log(err);
res.status(500).send(err.message);
}
});
Expand Down Expand Up @@ -78,7 +76,6 @@ catalogRouter.put('/:id', async (req, res) => {
);
res.status(200).send(keysToCamel(updatedCatalog));
} catch (err) {
console.log(err);
res.status(500).send(err.message);
}
});
Expand All @@ -90,7 +87,6 @@ catalogRouter.delete('/:id', async (req, res) => {
const delUser = await db.query(`DELETE FROM catalog WHERE id = $1 RETURNING *;`, [id]);
res.status(200).send(keysToCamel(delUser));
} catch (err) {
console.log(err);
res.status(500).send(err.message);
}
});
Expand Down

0 comments on commit 3d597b5

Please sign in to comment.