Browse Source

fix: User logged out after removing another user

Owen Diffey 2 years ago
parent
commit
06934905b9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      backend/logic/actions/users.js

+ 1 - 2
backend/logic/actions/users.js

@@ -672,7 +672,7 @@ export default {
 				(res, next) => {
 					CacheModule.runJob("PUB", {
 						channel: "user.removeSessions",
-						value: session.userId
+						value: userId
 					});
 
 					async.waterfall(
@@ -695,7 +695,6 @@ export default {
 
 							(keys, sessions, next) => {
 								// temp fix, need to wait properly for the SUB/PUB refactor (on wekan)
-								const { userId } = session;
 								setTimeout(
 									() =>
 										async.each(