Преглед на файлове

Fixed backend build issues

Kristian Vos преди 4 години
родител
ревизия
16d46f70a1
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      backend/logic/actions/playlists.js
  2. 1 1
      backend/logic/actions/stations.js
  3. 1 1
      backend/logic/stations.js

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

@@ -1311,7 +1311,7 @@ export default {
 	 * @param {Function} cb - gets called with the result
 	 */
 	remove: isLoginRequired(async function remove(session, playlistId, cb) {
-		const stationModel = await DBModule.runJob("GET_MODEL", { modelName: "station" }, this);
+		// const stationModel = await DBModule.runJob("GET_MODEL", { modelName: "station" }, this);
 		const userModel = await DBModule.runJob("GET_MODEL", { modelName: "user" }, this);
 
 		async.waterfall(

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

@@ -2461,7 +2461,7 @@ export default {
 					this.log(station);
 
 					if (station) return next("A station with that name or display name already exists.");
-					const { name, displayName, description, playlist, type, genres, blacklistedGenres } = data;
+					const { name, displayName, description, /* playlist, */ type, genres, blacklistedGenres } = data;
 					const stationId = mongoose.Types.ObjectId();
 
 					if (type === "official") {

+ 1 - 1
backend/logic/stations.js

@@ -1,5 +1,5 @@
 import async from "async";
-import mongoose from "mongoose";
+// import mongoose from "mongoose";
 
 import CoreClass from "../core";