Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes in backend to accommodate new number input field in join section #964

Merged
merged 5 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ const addUserIntro = async (req, res) => {
funFact: rawData.funFact,
forFun: rawData.forFun,
whyRds: rawData.whyRds,
numberOfHours: rawData.numberOfHours,
},
foundFrom: rawData.foundFrom,
};
Expand Down
1 change: 1 addition & 0 deletions middlewares/validators/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const validateJoinData = async (req, res, next) => {
funFact: joi.string().min(100).required(),
whyRds: joi.string().min(100).required(),
flowState: joi.string().optional(),
numberOfHours: joi.number().min(1).max(100).required(),
prakashchoudhary07 marked this conversation as resolved.
Show resolved Hide resolved
});

try {
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/tdd-files-list.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test/integration/<replace>.test.js
test/integration/<replace>>.test.js
test/integration/<replace>.test.js
test/unit/<replace>/<replace>.test.js
test/unit/<replace>/<replace>.test.js
test/unit/<replace>/<replace>.test.js
3 changes: 3 additions & 0 deletions test/fixtures/user/join.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.