storagenode/console/service: Satellites EarliestJoinDate calculation ignores empty date

Change-Id: Ic528467dbf0a47a7779fd7ae054856744298a39c
This commit is contained in:
Qweder93 2020-04-21 16:09:28 +03:00
parent 1e295a48e7
commit 3d56efc82d

View File

@ -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
}
}