log redis url

This commit is contained in:
AtHeartEngineer
2023-07-12 12:08:38 -04:00
parent cc3298cd4d
commit da2c486e57

View File

@@ -44,8 +44,9 @@ let loadedRooms: RoomGroupI[];
let TESTGROUPID: BigInt;
// TODO get the claim code manager working with redis to store the state of the rooms and claim codes in a redis database that persists across server restarts
// Redis
console.log('Connecting to REDIS_URL', REDIS_URL);
const redisClient = createClient({ url: REDIS_URL });
redisClient.connect().then(() => pp('Redis Connected'));
redisClient.get('rooms').then((rooms) => {
@@ -56,7 +57,6 @@ redisClient.get('rooms').then((rooms) => {
loadedRooms = defaultRooms;
redisClient.set('rooms', JSON.stringify(loadedRooms));
}
pp({ 'Loaded Rooms': loadedRooms });
});
let ccm: ClaimCodeManager;