Explorar o código

Fixed backend build issues

Kristian Vos %!s(int64=4) %!d(string=hai) anos
pai
achega
16d46f70a1

+ 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";