Skip to content

Commit

Permalink
πŸŽ‰ REDIS TESTS PASS πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
lperson committed May 11, 2024
1 parent 2f2f1e0 commit 066f865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/models/thinky.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ if (redisUrl) {
}

const redis = require("redis");
thinkyConn.r.redis = redis.createClient(redisSettings);
(async () => {
console.log("🐰 before", redisSettings.url);
await thinkyConn.r.redis.connect();
console.log("πŸ‡ after");
thinkyConn.r.redis = await redis
.createClient(redisSettings)
.on("error", err => console.log("Redis Client Error", err))
.connect();
})();
} else if (process.env.REDIS_FAKE) {
const fakeredis = require("fakeredis");
Expand Down

0 comments on commit 066f865

Please sign in to comment.