Skip to content

Commit

Permalink
feat: add custom tasks options for data generation (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo authored Jul 11, 2023
2 parents 78d5ceb + a33b7f1 commit 2bc9d57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tools/mongodb/scripts/generate-session-with-related-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const sessionId = db.SessionData.insertOne({
min: 0,
max: 10
}),
Options: {},
Options: {
"CustomOption1": faker.word.sample(),
"CustomOption2": faker.word.sample()
},
Priority: faker.number.int({
min: 0,
max: 4
Expand Down
5 changes: 4 additions & 1 deletion tools/mongodb/scripts/generate-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ for (let i = 0; i < tasksNumber; i++) {
min: 0,
max: 10
}),
Options: {},
Options: {
"CustomOption1": faker.word.sample(),
"CustomOption2": faker.word.sample()
},
Priority: faker.number.int({
min: 0,
max: 4
Expand Down

0 comments on commit 2bc9d57

Please sign in to comment.