diff options
Diffstat (limited to 'lib/toglx.ex')
-rw-r--r-- | lib/toglx.ex | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/toglx.ex b/lib/toglx.ex index 9bb086c..63bbcdd 100644 --- a/lib/toglx.ex +++ b/lib/toglx.ex @@ -33,6 +33,17 @@ defmodule Toglx do end end + def submit_continue_event do + case current do + %{data: nil} -> list |> List.last |> continue + _ -> :ok + end + end + + defp continue(%{description: task_name}) do + submit_start_event(task_name) + end + def current do create_togglex_client |> Togglex.Api.TimeEntries.current |