fix return type of fetchSummary and fetchSummaryFromProxy

This commit is contained in:
Hazelnoot 2025-05-08 11:06:06 -04:00
parent 1ac9625eea
commit 207915856a

View file

@ -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,