Skip to content

Commit

Permalink
hotfix(Routes.Route): have Jason.Encoder skip new field
Browse files Browse the repository at this point in the history
it gets mad when the cache gives it a struct without the new field
  • Loading branch information
thecristen committed Jul 2, 2024
1 parent e6aeb97 commit 0273b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/route.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Routes.Route do

@routes_repo Application.compile_env!(:dotcom, :repo_modules)[:routes]

@derive Jason.Encoder
@derive {Jason.Encoder, except: [:external_agency_name]}

defstruct color: "",
custom_route?: false,
Expand Down

0 comments on commit 0273b4b

Please sign in to comment.