mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
log redis url
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user