fix return type of fetchSummary and fetchSummaryFromProxy
This commit is contained in:
@@ -191,7 +191,7 @@ export class UrlPreviewService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fetchSummary(url: string, meta: MiMeta, lang?: string): Promise<LocalSummalyResult> {
|
private fetchSummary(url: string, meta: MiMeta, lang?: string): Promise<SummalyResult> {
|
||||||
const agent = this.config.proxy
|
const agent = this.config.proxy
|
||||||
? {
|
? {
|
||||||
http: this.httpRequestService.httpAgent,
|
http: this.httpRequestService.httpAgent,
|
||||||
@@ -210,7 +210,7 @@ export class UrlPreviewService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private fetchSummaryFromProxy(url: string, meta: MiMeta, lang?: string): Promise<LocalSummalyResult> {
|
private fetchSummaryFromProxy(url: string, meta: MiMeta, lang?: string): Promise<SummalyResult> {
|
||||||
const proxy = meta.urlPreviewSummaryProxyUrl!;
|
const proxy = meta.urlPreviewSummaryProxyUrl!;
|
||||||
const queryStr = query({
|
const queryStr = query({
|
||||||
followRedirects: true,
|
followRedirects: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user