Fixed issue with search requests that weren't fetched again after entry cache was expired

This commit is contained in:
Giuseppe Digilio
2020-06-30 12:42:48 +02:00
parent 99a6bf52ff
commit 6ef3f685ca

View File

@@ -342,7 +342,7 @@ export abstract class DataService<T extends CacheableObject> {
return hrefObs.pipe(
find((href: string) => hasValue(href)),
tap((href: string) => {
this.requestService.removeByHrefSubstring(href);
this.requestService.removeByHrefSubstring(searchMethod);
const request = new FindListRequest(this.requestService.generateRequestId(), href, options);
if (hasValue(this.responseMsToLive)) {
request.responseMsToLive = this.responseMsToLive;