Browse Source

fix: backend error

Kristian Vos 2 years ago
parent
commit
e2782ccaa4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      backend/logic/actions/stations.js

+ 2 - 2
backend/logic/actions/stations.js

@@ -64,7 +64,7 @@ CacheModule.runJob("SUB", {
 										modelName: "user"
 									},
 									this
-								).then(userModel =>
+								).then(userModel => {
 									userModel.findOne({ _id: session.userId }, (err, user) => {
 										if (user && user.role === "admin")
 											socket.dispatch("event:station.userCount.updated", {
@@ -79,7 +79,7 @@ CacheModule.runJob("SUB", {
 												data: { stationId, count }
 											});
 									})
-								);
+								});
 						});
 					}
 				});