Skip to content

Commit

Permalink
#423 mix format ... tidies items_with_timers/2 code & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Sep 16, 2023
1 parent 81c7227 commit 15af0f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 8 additions & 7 deletions lib/app/item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,14 @@ defmodule App.Item do
]
"""
def items_with_timers(person_id \\ 0, list_cid \\ nil) do
seq = if is_nil(list_cid) do
App.List.get_all_list_for_person(person_id)
|> App.List.get_list_seq()
else
App.List.get_list_by_cid!(list_cid)
|> App.List.get_list_seq()
end
seq =
if is_nil(list_cid) do
App.List.get_all_list_for_person(person_id)
|> App.List.get_list_seq()
else
App.List.get_list_by_cid!(list_cid)
|> App.List.get_list_seq()
end

sql = """
SELECT i.id, i.cid, i.text, i.status, i.person_id, i.updated_at,
Expand Down
1 change: 0 additions & 1 deletion lib/app_web/live/app_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ defmodule AppWeb.AppLive do

@impl true
def mount(_params, _session, socket) do

# subscribe to the channel
if connected?(socket), do: AppWeb.Endpoint.subscribe(@topic)
AppWeb.Endpoint.subscribe(@stats_topic)
Expand Down

0 comments on commit 15af0f1

Please sign in to comment.