From 3fbb2b5d7fca876ccde18e824b45ecb4207e379b Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Wed, 20 Aug 2025 18:31:40 +0200 Subject: [PATCH] fix: ioredis errors --- README.md | 6 ------ apps/web/package.json | 2 +- apps/web/src/lib/workers/index.ts | 4 ++-- packages/db/package.json | 2 +- yarn.lock | 23 ++++++++++++++--------- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 8bb9ab6..639af2d 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,3 @@ This is the source code for [hackclub.tv (hctv.srizan.dev)](https://hctv.srizan. Development has been ongoing for a few months, and the site is now live! There are some half-baked features, but I'm all ears for feedback. Join [#hctv](https://hackclub.slack.com/archives/C08HGLXGXAB) on the HC Slack for discussion and updates! - -## Features - -- High quality video streaming (low latency coming soon) -- Chat with other viewers -- Multiaccount support (database schema laid out, UI not implemented) \ No newline at end of file diff --git a/apps/web/package.json b/apps/web/package.json index c38a495..f552145 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -43,7 +43,7 @@ "clsx": "^2.1.0", "cmdk": "1.0.0", "hls-video-element": "^1.5.0", - "ioredis": "^5.6.0", + "ioredis": "5.7.0", "livekit-client": "^2.8.0", "livekit-server-sdk": "^2.9.7", "lucia": "^3.2.2", diff --git a/apps/web/src/lib/workers/index.ts b/apps/web/src/lib/workers/index.ts index c63aa6e..96a0d62 100644 --- a/apps/web/src/lib/workers/index.ts +++ b/apps/web/src/lib/workers/index.ts @@ -17,7 +17,7 @@ if (!globalForNotifier.notificationQueue) { export function getNotificationQueue(): Queue { if (!globalForNotifier.notificationQueue) { globalForNotifier.notificationQueue = new Queue('notifications', { - connection: getRedisConnection(), + connection: getRedisConnection().options, defaultJobOptions: { attempts: 3, backoff: { @@ -33,7 +33,7 @@ export function getNotificationQueue(): Queue { export function getThumbnailQueue(): Queue { if (!globalForNotifier.thumbnailQueue) { globalForNotifier.thumbnailQueue = new Queue('thumbnails', { - connection: getRedisConnection(), + connection: getRedisConnection().options, defaultJobOptions: { attempts: 3, backoff: { diff --git a/packages/db/package.json b/packages/db/package.json index 97dfb01..a9f0c49 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -11,7 +11,7 @@ "type": "module", "dependencies": { "@prisma/client": "^6.5.0", - "ioredis": "^5.6.1", + "ioredis": "5.7.0", "prisma": "^6.5.0" }, "scripts": { diff --git a/yarn.lock b/yarn.lock index 11f4659..d1d1e22 100644 --- a/yarn.lock +++ b/yarn.lock @@ -689,6 +689,11 @@ resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.2.0.tgz#6d61b3097470af1fdbbe622795b8921d42018e11" integrity sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg== +"@ioredis/commands@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.3.0.tgz#4dc3ae9bfa7146b63baf27672a61db0ea86e35e5" + integrity sha512-M/T6Zewn7sDaBQEqIZ8Rb+i9y8qfGmq+5SDFSf9sA2lUZTmdDLVdOiQaeDp+Q4wElZ9HG1GAX5KhDaidp6LQsQ== + "@isaacs/cliui@^8.0.2": version "8.0.2" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" @@ -4439,12 +4444,12 @@ internal-slot@^1.1.0: hasown "^2.0.2" side-channel "^1.1.0" -ioredis@^5.4.1, ioredis@^5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.6.0.tgz#faa2a27132f8a05c0ddfef400b01d1326df211a0" - integrity sha512-tBZlIIWbndeWBWCXWZiqtOF/yxf6yZX3tAlTJ7nfo5jhd6dctNxF7QnYlZLZ1a0o0pDoen7CgZqO+zjNaFbJAg== +ioredis@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.7.0.tgz#be8f4a09bfb67bfa84ead297ff625973a5dcefc3" + integrity sha512-NUcA93i1lukyXU+riqEyPtSEkyFq8tX90uL659J+qpCZ3rEdViB/APC58oAhIh3+bJln2hzdlZbBZsGNrlsR8g== dependencies: - "@ioredis/commands" "^1.1.1" + "@ioredis/commands" "^1.3.0" cluster-key-slot "^1.1.0" debug "^4.3.4" denque "^2.1.0" @@ -4454,10 +4459,10 @@ ioredis@^5.4.1, ioredis@^5.6.0: redis-parser "^3.0.0" standard-as-callback "^2.1.0" -ioredis@^5.6.1: - version "5.6.1" - resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.6.1.tgz#1ed7dc9131081e77342503425afceaf7357ae599" - integrity sha512-UxC0Yv1Y4WRJiGQxQkP0hfdL0/5/6YvdfOOClRgJ0qppSarkhneSa6UvkMkms0AkdGimSH3Ikqm+6mkMmX7vGA== +ioredis@^5.4.1: + version "5.6.0" + resolved "https://registry.yarnpkg.com/ioredis/-/ioredis-5.6.0.tgz#faa2a27132f8a05c0ddfef400b01d1326df211a0" + integrity sha512-tBZlIIWbndeWBWCXWZiqtOF/yxf6yZX3tAlTJ7nfo5jhd6dctNxF7QnYlZLZ1a0o0pDoen7CgZqO+zjNaFbJAg== dependencies: "@ioredis/commands" "^1.1.1" cluster-key-slot "^1.1.0"