浏览代码

fix: Unable to create station due to required currentSong _id

Owen Diffey 3 年之前
父节点
当前提交
61834fdd29
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 }],