From 2e72ac7faf474062a2c454d451dfbe80e8279720 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:36:26 +0100 Subject: [PATCH] Feature/format quotes in info service urls (#4174) * Format quotes --- apps/api/src/app/info/info.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/info/info.service.ts b/apps/api/src/app/info/info.service.ts index b61d44620..1af41520d 100644 --- a/apps/api/src/app/info/info.service.ts +++ b/apps/api/src/app/info/info.service.ts @@ -155,7 +155,7 @@ export class InfoService { private async countDockerHubPulls(): Promise { 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 { 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(