Selaa lähdekoodia

fix: Unable to create station due to required currentSong _id

Owen Diffey 3 vuotta sitten
vanhempi
commit
61834fdd29
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      backend/logic/db/schemas/station.js

+ 1 - 1
backend/logic/db/schemas/station.js

@@ -7,7 +7,7 @@ export default {
 	description: { type: String, minlength: 2, maxlength: 128, trim: true, required: true },
 	paused: { type: Boolean, default: false, required: true },
 	currentSong: {
-		_id: { type: mongoose.Schema.Types.ObjectId, required: true },
+		_id: { type: mongoose.Schema.Types.ObjectId },
 		youtubeId: { type: String },
 		title: { type: String },
 		artists: [{ type: String }],