Skip to content

Commit

Permalink
Fix from
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvanleeuwen committed Mar 13, 2024
1 parent ad96535 commit fb273ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/mave_metrics/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ defmodule MaveMetrics.API do

defp apply_timeframe(query, timeframe, date_field) when is_number(timeframe) do
from =
DateTime.from_unix!(from_timestamp, :second)
DateTime.from_unix!(timeframe, :second)
|> DateTime.truncate(:microsecond)

query
Expand Down

0 comments on commit fb273ad

Please sign in to comment.