take one from server info to prevent multiple reqs to registries (#2032)

This commit is contained in:
Matt Hill
2022-12-05 22:48:56 -07:00
committed by GitHub
parent c9d35d8096
commit 428997f26a

View File

@@ -176,6 +176,7 @@ export class MarketplaceService implements AbstractMarketplaceService {
fetchInfo$(url: string): Observable<StoreInfo> {
return this.patch.watch$('server-info').pipe(
take(1),
switchMap(serverInfo => {
const qp: RR.GetMarketplaceInfoReq = {
'server-id': serverInfo.id,