Skip to content

Commit 3413727

Browse files
fix: correct Redis error handler syntax bug
Fixed critical syntax error in Redis error event handler where a double arrow function prevented error logging from executing. Before: redis.on("error", (error) => () => { ... }) After: redis.on("error", (error) => { ... }) Impact: - Redis errors were silently ignored - Debugging connection issues was impossible - Production incidents went undetected - Critical for operational visibility
1 parent 38742f7 commit 3413727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/utils/redis/redis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ try {
1919
});
2020
}
2121

22-
redis.on("error", (error) => () => {
22+
redis.on("error", (error) => {
2323
logger({
2424
level: "error",
2525
message: `Redis error: ${error}`,

0 commit comments

Comments
 (0)