feat: default response to dialogue and spoken by Ada

This commit is contained in:
Lin, Hung-Shin committed 2023-11-22 12:14:04 +08:00
1 parent 21ca083628
commit 2e1fe369a4
1 file changed
+3 -1
+3 -1
View File
@@ -3,10 +3,12 @@ import { model, Schema } from 'mongoose'
const responseSchema = new Schema({
type: {
type: String,
enum: ['narrative', 'dialogue'],
default: 'dialogue',
required: true,
},
content: [String],
speaker: String,
speaker: { type: String, default: 'Ada' },
color: String,
})