Skip to content

Commit

Permalink
Fix default sync date sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Oct 21, 2022
1 parent 0d19121 commit 9178196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/archethic/self_repair/sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ defmodule Archethic.SelfRepair.Sync do
%Node{enrollment_date: enrollment_date} =
nodes
|> Enum.reject(&(&1.enrollment_date == nil))
|> Enum.sort_by(& &1.enrollment_date)
|> Enum.sort_by(& &1.enrollment_date, {:asc, DateTime})
|> Enum.at(0)

Logger.info(
Expand Down

0 comments on commit 9178196

Please sign in to comment.