fix: set content in response to be required

This commit is contained in:
Lin, Hung-Shin committed 2023-11-26 22:36:10 +08:00
1 parent fb6411e923
commit ebd81f7cb4
1 file changed
+4 -1
+4 -1
View File
@@ -7,7 +7,10 @@ const responseSchema = new Schema({
default: 'dialogue',
required: true,
},
content: [String],
content: {
type: [String],
required: true,
},
speaker: { type: String, default: 'Ada' },
color: String,
})