feat: add hints to session, update API

This commit is contained in:
wancat committed 2023-08-08 20:38:27 +08:00
1 parent ae61bfc768
commit 6f368f761e
8 files changed
+52 -46

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ const stageSchema = new Schema({
type: [String],
required: true,
},
hint: {
hints: {
type: [String],
required: true,
},
@@ -39,7 +39,7 @@ const Quest = model(
_id: String,
title: String,
order: Number,
introduction: String,
instruction: String,
stages: [stageSchema],
})
)
+1
View File
@@ -16,6 +16,7 @@ const Session = model(
finishedAt: Date,
progress: String,
completion: [String],
hints: [String],
},
{ timestamps: true }
)