Skip to content

Commit 9363a7a

Browse files
committed
Avoid snake-casifying meta field in goal
1 parent d2182e6 commit 9363a7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/cadet_web/admin_controllers/admin_goals_controller.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ defmodule CadetWeb.AdminGoalsController do
3030
end
3131

3232
defp json_to_goal(json, uuid \\ nil) do
33+
original_meta = json["meta"]
34+
3335
json =
3436
json
3537
|> snake_casify_string_keys_recursive()
38+
|> Map.put("meta", original_meta)
3639

3740
if is_nil(uuid) do
3841
json

0 commit comments

Comments
 (0)