Skip to content

Commit

Permalink
Remove breaking enum change
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Nov 23, 2024
1 parent ed6b6bc commit 5a9dd26
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions frontend/src/constants/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export const HairColorTypes: EnumDictionary<HairColorEnum, string> = {
[HairColorEnum.AUBURN]: "Auburn",
[HairColorEnum.BALD]: "Bald",
[HairColorEnum.BLACK]: "Black",
[HairColorEnum.BLOND]: "Blond",
[HairColorEnum.BROWN]: "Brown",
[HairColorEnum.BLONDE]: "Blond",
[HairColorEnum.BRUNETTE]: "Brown",
[HairColorEnum.GREY]: "Grey",
[HairColorEnum.OTHER]: "Other",
[HairColorEnum.RED]: "Red",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/performers/performerForm/PerformerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const GENDER: OptionEnum[] = [

const HAIR: OptionEnum[] = [
{ value: "null", label: "Unknown" },
{ value: "BLOND", label: "Blond" },
{ value: "BROWN", label: "Brown" },
{ value: "BLONDE", label: "Blond" },
{ value: "BRUNETTE", label: "Brown" },
{ value: "BLACK", label: "Black" },
{ value: "RED", label: "Red" },
{ value: "AUBURN", label: "Auburn" },
Expand Down
4 changes: 2 additions & 2 deletions graphql/schema/types/performer.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ enum EyeColorEnum {
}

enum HairColorEnum {
BLOND
BROWN
BLONDE
BRUNETTE
BLACK
RED
AUBURN
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/performer_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (s *performerTestRunner) testCreatePerformer() {
gender := models.GenderEnumFemale
ethnicity := models.EthnicityEnumCaucasian
eyeColor := models.EyeColorEnumBlue
hairColor := models.HairColorEnumBlond
hairColor := models.HairColorEnumBlonde
breastType := models.BreastTypeEnumNatural
birthdate := "2001-02-03"
site, err := s.createTestSite(nil)
Expand Down
2 changes: 0 additions & 2 deletions pkg/database/migrations/postgres/31_hair_color_enum.up.sql

This file was deleted.

0 comments on commit 5a9dd26

Please sign in to comment.