Skip to content

Commit

Permalink
Merge pull request #769 from CityOfDetroit/fixTravTest
Browse files Browse the repository at this point in the history
Fix broken e2e user test
  • Loading branch information
aisiri-murulidhar authored Nov 16, 2021
2 parents 2b4511f + 8cd64da commit 3e5170f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion backend/core/src/auth/dto/user-create.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ export class UserCreateDto extends OmitType(UserDto, [
jurisdictions?: IdDto[]

@Expose()
@IsOptional({ groups: [ValidationsGroupsEnum.default] })
@IsBoolean({ groups: [ValidationsGroupsEnum.default] })
emailSubscription: boolean
emailSubscription?: boolean

@Expose()
@IsEmail({}, { groups: [ValidationsGroupsEnum.default] })
Expand Down
2 changes: 0 additions & 2 deletions backend/core/src/seeds/listings/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ export const defaultLeasingAgents: Omit<UserCreateDto, "jurisdictions">[] = [
middleName: "Middle",
email: "[email protected]",
emailConfirmation: "[email protected]",
emailSubscription: false,
password: "abcdef",
passwordConfirmation: "Abcdef1",
dob: new Date(),
Expand All @@ -450,7 +449,6 @@ export const defaultLeasingAgents: Omit<UserCreateDto, "jurisdictions">[] = [
middleName: "Middle",
email: "[email protected]",
emailConfirmation: "[email protected]",
emailSubscription: false,
password: "abcdef",
passwordConfirmation: "Abcdef1",
dob: new Date(),
Expand Down
2 changes: 1 addition & 1 deletion backend/core/types/src/backend-swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3759,7 +3759,7 @@ export interface UserCreate {
phoneNumber?: string

/** */
emailSubscription: string
emailSubscription?: boolean

/** */
preferences?: CombinedPreferencesTypes
Expand Down

0 comments on commit 3e5170f

Please sign in to comment.