storagenode/heldamount: id removed from satellite name

Change-Id: Ic524a40930a5fe7673ccce817d6f68c3538e5208
This commit is contained in:
NickolaiYurchenko 2020-06-30 18:44:52 +03:00
parent 66661c7486
commit b878fcc4b2
2 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ func TestHeldAmountApi(t *testing.T) {
held := heldamount.HeldHistory{
SatelliteID: satellite.ID(),
SatelliteName: satellite.URL(),
SatelliteName: satellite.Addr(),
Age: int64(age),
FirstPeriod: 28,
SecondPeriod: 0,

View File

@ -316,7 +316,7 @@ func (service *Service) AllHeldbackHistory(ctx context.Context) (result []HeldHi
}
history.Age = int64(date.MonthsCountSince(stats.JoinedAt))
history.SatelliteName = url.String()
history.SatelliteName = url.Address
history.JoinedAt = stats.JoinedAt
result = append(result, history)