Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Vaughan committed Oct 11, 2018
1 parent 211a80b commit 50c0028
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/slot_sync/runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ defmodule SlotSync.Runner do
@moduledoc """
Ensures sync peroid covers a rolling amount of data on each call
"""

use Confex, otp_app: :slot_sync

@spec start() :: :ok
def start do
now = Timex.now()
state_data = Timex.shift(now, days: -1) |> DateTime.to_iso8601()
end_date = Timex.shift(now, days: 1) |> DateTime.to_iso8601()
# state_data = Timex.shift(now, days: days()) |> DateTime.to_iso8601()
# end_date = Timex.shift(now, days: days()) |> DateTime.to_iso8601()

SlotSync.WIW.shifts(state_data, end_date)

:ok
end

# defp days(), do: config()[:days]
end

0 comments on commit 50c0028

Please sign in to comment.