Skip to content

Commit

Permalink
fix(schedules): correct encoding of update schedule payload for activ…
Browse files Browse the repository at this point in the history
…e field (#683)
  • Loading branch information
ecrupper committed Jun 22, 2023
1 parent 4aaee3e commit d22fc4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/elm/Vela.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1788,11 +1788,11 @@ decodeSchedules =


encodeUpdateSchedule : UpdateSchedulePayload -> Encode.Value
encodeUpdateSchedule secret =
encodeUpdateSchedule schedule =
Encode.object
[ ( "name", encodeOptional Encode.string secret.name )
, ( "entry", encodeOptional Encode.string secret.entry )
, ( "enabled", encodeOptional Encode.bool secret.enabled )
[ ( "name", encodeOptional Encode.string schedule.name )
, ( "entry", encodeOptional Encode.string schedule.entry )
, ( "active", encodeOptional Encode.bool schedule.enabled )
]


Expand Down

0 comments on commit d22fc4a

Please sign in to comment.