Fix pagination in memory store

This commit is contained in:
TwinProduction 2021-07-16 17:59:19 -04:00 committed by Chris
parent 9384373f43
commit 2ef9329fa6

View File

@ -62,7 +62,7 @@ func (s *Store) GetServiceStatusByKey(key string, params *paging.ServiceStatusPa
if serviceStatus == nil {
return nil
}
return serviceStatus.(*core.ServiceStatus)
return ShallowCopyServiceStatus(serviceStatus.(*core.ServiceStatus), params)
}
// Insert adds the observed result for the specified service into the store