Browse Source
Feature/format quotes in info service urls (#4174)
* Format quotes
pull/3507/merge
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
apps/api/src/app/info/info.service.ts
|
|
@ -155,7 +155,7 @@ export class InfoService { |
|
|
|
private async countDockerHubPulls(): Promise<number> { |
|
|
|
try { |
|
|
|
const { pull_count } = (await fetch( |
|
|
|
`https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio`, |
|
|
|
'https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio', |
|
|
|
{ |
|
|
|
headers: { 'User-Agent': 'request' }, |
|
|
|
signal: AbortSignal.timeout( |
|
|
@ -184,7 +184,7 @@ export class InfoService { |
|
|
|
|
|
|
|
return extractNumberFromString({ |
|
|
|
value: $( |
|
|
|
`a[href="/ghostfolio/ghostfolio/graphs/contributors"] .Counter` |
|
|
|
'a[href="/ghostfolio/ghostfolio/graphs/contributors"] .Counter' |
|
|
|
).text() |
|
|
|
}); |
|
|
|
} catch (error) { |
|
|
@ -197,7 +197,7 @@ export class InfoService { |
|
|
|
private async countGitHubStargazers(): Promise<number> { |
|
|
|
try { |
|
|
|
const { stargazers_count } = (await fetch( |
|
|
|
`https://api.github.com/repos/ghostfolio/ghostfolio`, |
|
|
|
'https://api.github.com/repos/ghostfolio/ghostfolio', |
|
|
|
{ |
|
|
|
headers: { 'User-Agent': 'request' }, |
|
|
|
signal: AbortSignal.timeout( |
|
|
|