Browse Source

Fixed some lint issues

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

+ 1 - 1
backend/logic/punishments.js

@@ -125,7 +125,7 @@ class _PunishmentsModule extends CoreClass {
 
 						Object.keys(punishments).forEach(punishmentKey => {
 							const punishment = punishments[punishmentKey];
-							punishment.punishmentId = id;
+							punishment.punishmentId = punishmentKey;
 							punishments.push(punishment);
 						});
 

+ 1 - 1
backend/logic/stations.js

@@ -217,7 +217,7 @@ class _StationsModule extends CoreClass {
 					(station, next) => {
 						if (!station) return next("Station not found.");
 
-						NotificationsModule.runJob(
+						return NotificationsModule.runJob(
 							"UNSCHEDULE",
 							{
 								name: `stations.nextSong?id=${station._id}`