mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-08-21 18:43:37 +00:00
fix return type of fetchSummary and fetchSummaryFromProxy
This commit is contained in:
parent
1ac9625eea
commit
207915856a
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue