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

Conversation

fakhruddinkw
Copy link
Contributor

This closes : #961

Changes made:

-Added the new numberOfHours field in joi schema, as a number field with min=1 and max=100 and set to required.
-before validating made sure numberOfHours from req.body was converted to integer, because if we dont do this it will fail the validation
-Also added the numberOfHours to addJoinData controller function to sent the data to DB.
-made sure the sent numberOfHours field was number by parsing it.

package.json Outdated Show resolved Hide resolved
key.json Outdated Show resolved Hide resolved
scripts/tests/tdd-files-list.txt Outdated Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
@fakhruddinkw fakhruddinkw requested a review from sahsisunny March 23, 2023 23:08
middlewares/validators/user.js Outdated Show resolved Hide resolved
middlewares/validators/user.js Show resolved Hide resolved
middlewares/validators/user.js Show resolved Hide resolved
middlewares/validators/user.js Outdated Show resolved Hide resolved
@prakashchoudhary07 prakashchoudhary07 merged commit 03a1f16 into develop Apr 3, 2023
@prakashchoudhary07 prakashchoudhary07 deleted the feature/join-section branch April 3, 2023 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding new field to Join section
3 participants