Skip to content

Commit

Permalink
Reinstate and populate Vehicle.image as a @deprecated field
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed May 15, 2024
1 parent 7d44d7b commit 15fd072
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
69 changes: 69 additions & 0 deletions graph/generated.go

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

1 change: 1 addition & 0 deletions graph/model/models_gen.go

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

1 change: 1 addition & 0 deletions graph/schema/vehicle.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ type Vehicle implements Node {
A URI containing an image for the vehicle.
"""
imageUri: String!
image: String! @deprecated(reason: "Use `imageUri` instead.")

earnings: VehicleEarnings

Expand Down
1 change: 1 addition & 0 deletions internal/repositories/vehicle/vehicles.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ func ToAPI(v *models.Vehicle, imageURI string, dataURI string) (*gmodel.Vehicle,
ManufacturerID: v.ManufacturerID,
Name: name,
ImageURI: imageURI,
Image: imageURI,
DataURI: dataURI,
}, nil
}
Expand Down

0 comments on commit 15fd072

Please sign in to comment.