Explorar el Código

fix: blacklistedCommunityStationNames issues

Owen Diffey hace 3 años
padre
commit
32c15713c4
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      backend/config/template.json
  2. 1 1
      backend/logic/actions/stations.js

+ 1 - 1
backend/config/template.json

@@ -59,7 +59,7 @@
 		"secure": false,
 		"SIDname": "SID"
 	},
-	"blacklistedStationNames": ["musare"],
+	"blacklistedCommunityStationNames": ["musare"],
 	"skipConfigVersionCheck": false,
 	"skipDbDocumentsVersionCheck": false,
 	"debug": {

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

@@ -2579,7 +2579,7 @@ export default {
 			"station"
 		];
 
-		if (data.type === "community" && config.get("blacklistedCommunityStationNames "))
+		if (data.type === "community" && config.has("blacklistedCommunityStationNames"))
 			blacklist = [...blacklist, ...config.get("blacklistedCommunityStationNames")];
 
 		async.waterfall(