Skip to content

Commit 8f63cab

Browse files
committed
Revert "debug logs"
This reverts commit 030ae24.
1 parent f8341ec commit 8f63cab

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/db/rateLimits.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ const updateRateLimit = async (key, timestamps) => {
2828
WHERE key = $1
2929
RETURNING *;
3030
`;
31-
console.log('query', query);
3231
const values = [key, timestamps];
3332
const result = await db.query(query, values);
34-
console.log("result", result);
3533
return result.rows[0];
3634
};
3735

src/routes/rateLimitRoute.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ router.get('/rate-limits/:key', async (req, res, next) => {
3535
router.put('/rate-limits/:key', async (req, res, next) => {
3636
const { key } = req.params;
3737
const { timestamps } = req.body;
38-
console.log(req.body);
39-
console.log(key);
40-
console.log("-----------");
4138

4239
try {
4340
const updatedRateLimit = await rateLimits.updateRateLimit(key, timestamps);
44-
console.log("updatedRateLimit", updatedRateLimit);
4541
if (updatedRateLimit) {
4642
res.status(200).json(updatedRateLimit);
4743
} else {

0 commit comments

Comments
 (0)