Skip to content

Commit

Permalink
Give a better default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaddox5 committed Sep 5, 2024
1 parent 3ad5b83 commit 6fd1a0c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/config/v2/busway.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ defmodule ScreensConfig.V2.Busway do
}

@enforce_keys [:departures, :header]
defstruct departures: nil,
defstruct audio: %Audio{
start_time: ~T[00:00:00],
stop_time: ~T[23:59:59],
days_active: [1, 2, 3, 4, 5, 6, 7]
},
departures: nil,
evergreen_content: [],
header: nil,
audio: Audio.from_json(:default)
header: nil

use ScreensConfig.Struct,
children: [
Expand Down

0 comments on commit 6fd1a0c

Please sign in to comment.