docker-redis - final cleanup
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user