shuttlepro-shared 1.2.24 → 1.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/redis.js +0 -2
- package/package.json +1 -1
package/config/redis.js
CHANGED
|
@@ -42,7 +42,6 @@ const publishToChannel = async (channel, message) => {
|
|
|
42
42
|
try {
|
|
43
43
|
await connectRedis();
|
|
44
44
|
await publisher.publish(channel, JSON.stringify(message));
|
|
45
|
-
console.log(`📢 Message published to channel: ${channel}`);
|
|
46
45
|
} catch (err) {
|
|
47
46
|
console.error("❌ Error publishing message:", err);
|
|
48
47
|
}
|
|
@@ -57,7 +56,6 @@ const subscribeToChannel = async (channel, callback, expiry = false) => {
|
|
|
57
56
|
try {
|
|
58
57
|
await connectRedis();
|
|
59
58
|
await subscriber.subscribe(channel, (message) => {
|
|
60
|
-
console.log(`📥 Message received on channel: ${channel}`);
|
|
61
59
|
if (expiry) callback(message);
|
|
62
60
|
else callback(JSON.parse(message));
|
|
63
61
|
});
|