Browse Source

fix: Unable to create station due to required currentSong _id

Owen Diffey 3 năm trước cách đây
mục cha
commit
61834fdd29
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 }],