mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add hints to session, update API
This commit is contained in:
1 parent
ae61bfc768
commit
6f368f761e
8 files changed
+52
-46
No files matched your search
@@ -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],
|
||||
})
|
||||
)
|
||||
|
||||
@@ -16,6 +16,7 @@ const Session = model(
|
||||
finishedAt: Date,
|
||||
progress: String,
|
||||
completion: [String],
|
||||
hints: [String],
|
||||
},
|
||||
{ timestamps: true }
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user