Skip to content

Commit

Permalink
notes: show notes for the last 30 days
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushmau5 committed May 24, 2024
1 parent f655370 commit 360c539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/accumulator/notes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Accumulator.Notes do

def get_notes_grouped_and_ordered_by_date(workspace_id, ending_datetime) do
ending_datetime = ending_datetime |> DateTime.add(1)
starting_datetime = DateTime.add(ending_datetime, -10, :day)
starting_datetime = DateTime.add(ending_datetime, -30, :day)

# [ [date, [notes]], [date, [notes]] ]
result =
Expand Down

0 comments on commit 360c539

Please sign in to comment.