docker-redis - final cleanup

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-10-03 16:30:15 -04:00
parent 68b8743002
commit 5114138c67
7 changed files with 142 additions and 125 deletions

View File

@@ -1,4 +1,4 @@
const applyIOHelpers = (app, api, io, logger) => {
const applyIOHelpers = ({ app, api, io, logger }) => {
const getBodyshopRoom = (bodyshopID) => `bodyshop-broadcast-room:${bodyshopID}`;
const ioHelpersAPI = {
@@ -14,4 +14,4 @@ const applyIOHelpers = (app, api, io, logger) => {
return ioHelpersAPI;
};
module.exports = applyIOHelpers;
module.exports = { applyIOHelpers };

View File

@@ -4,7 +4,7 @@
* @param app
* @param logger
*/
const applyRedisHelpers = (pubClient, app, logger) => {
const applyRedisHelpers = ({ pubClient, app, logger }) => {
// Store session data in Redis
const setSessionData = async (socketId, key, value) => {
try {
@@ -225,5 +225,5 @@ const applyRedisHelpers = (pubClient, app, logger) => {
return api;
};
module.exports = applyRedisHelpers;
// "th1s1sr3d1s" (BCrypt)
module.exports = { applyRedisHelpers };