Skip to content

Commit c65d111

Browse files
committed
Removing unecessary console.log statements
1 parent e86d7f2 commit c65d111

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

backend/matching/src/controllers/cancel-request.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,8 @@ export const cancelMatchRequestController = async (req: Request, res: Response)
1515
}
1616

1717
// Check pending status using only userId
18-
const exists = await redisClient.exists(`match:${userId}`);
19-
20-
if (exists) {
21-
console.log(`Redis key for user ${userId} exists.`);
22-
} else {
23-
console.error(`Redis key for user ${userId} does NOT exist!`);
24-
}
25-
2618
const pendingStatus = await redisClient.hGet(`match:${userId}`, 'pending');
27-
console.log('this is pendingStatus ${pendingStatus}');
28-
const data = await redisClient.hGetAll(`match:${userId}`);
29-
console.log(`Data stored in Redis for user ${userId}:`, data);
19+
console.log(pendingStatus);
3020

3121
if (pendingStatus === 'true') {
3222
// Allow cancellation and remove from queue based on userId

0 commit comments

Comments
 (0)