storagenode/console/service: Satellites EarliestJoinDate calculation ignores empty date
Change-Id: Ic528467dbf0a47a7779fd7ae054856744298a39c
This commit is contained in:
parent
1e295a48e7
commit
3d56efc82d
@ -334,7 +334,7 @@ func (s *Service) GetAllSatellitesData(ctx context.Context) (_ *Satellites, err
|
||||
return nil, SNOServiceErr.Wrap(err)
|
||||
}
|
||||
|
||||
if stats.JoinedAt.Before(joinedAt) {
|
||||
if !stats.JoinedAt.IsZero() && stats.JoinedAt.Before(joinedAt) {
|
||||
joinedAt = stats.JoinedAt
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user