Ver código fonte

Small addition to last commit

Kristian Vos 4 anos atrás
pai
commit
662d49d85d
1 arquivos alterados com 7 adições e 3 exclusões
  1. 7 3
      backend/logic/stations.js

+ 7 - 3
backend/logic/stations.js

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