Remove customer profile fields from creation schema and service #172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Bug fix
Description
professions
,aboutMe
,aboutMeHtml
, andshortDescription
fields from the customer creation schema and service.username
field required in the user schema.username
field to the user creation in the test setup.GenerateAvailabilityProps
in the test file.Changes walkthrough 📝
create.ts
Simplify customer creation schema by removing profile fields
src/functions/customer/controllers/customer/create.ts
professions
,aboutMe
,aboutMeHtml
, andshortDescription
fieldsfrom the customer creation schema.
create.ts
Update customer service creation body type
src/functions/customer/services/customer/create.ts
CustomerServiceCreateBody
type to excludeprofessions
,aboutMe
,aboutMeHtml
, andshortDescription
fields.user.schema.ts
Set username field as required in user schema
src/functions/user/user.schema.ts
username
field required in the user schema.generate-availability.spec.ts
Add username field in test setup and fix import formatting
src/library/availability/generate-availability.spec.ts
username
field to the user creation in the test setup.GenerateAvailabilityProps
.