Skip to content

Commit

Permalink
Merge pull request #37 from polyglot-edu/20-new-execution-api-concept
Browse files Browse the repository at this point in the history
20 new execution api concept
  • Loading branch information
tmaog authored Apr 16, 2024
2 parents 2489854 + 1b01cd0 commit 473be38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/execution/plugins/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type TrueFalseNodeData = {

export type CloseEndedQuestionNodeData = {
question: string;
textToFill?: string;
correctAnswers: string[];
};

Expand Down
6 changes: 3 additions & 3 deletions src/models/flow.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ export const flowSchema = new mongoose.Schema<PolyglotFlow>({
},
learningContext: {
type: String,
required: true,
required: false,
default: ' ',
},
duration: {
type: Number,
required: true,
required: false,
default: 0,
},
topics: [{
type: String,
required: true,
required: false,
default: ' ',
}],
tags: [{
Expand Down
1 change: 1 addition & 0 deletions src/models/node.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export const closeEndedQuestionNodeSchema = new mongoose.Schema({
data: {
question: {type: String},
correctAnswers: [{type: String}],
textToFill: {type: String},
isAnswerCorrect: [{type: Boolean}]
}
}, options);
Expand Down

0 comments on commit 473be38

Please sign in to comment.