diff --git a/packages/api/src/router/widgets/audio-stats.ts b/packages/api/src/router/widgets/audio-stats.ts index 92b5a7e02..d43876583 100644 --- a/packages/api/src/router/widgets/audio-stats.ts +++ b/packages/api/src/router/widgets/audio-stats.ts @@ -16,7 +16,10 @@ export const audioStatsRouter = createTRPCRouter({ return (await handler.getCachedOrUpdatedDataAsync({ forceUpdate: false })).data; }, audiobookshelf: async () => { - const handler = audiobookshelfRequestHandler.handler({ ...ctx.integration, kind: "audiobookshelf" as const }, {}); + const handler = audiobookshelfRequestHandler.handler( + { ...ctx.integration, kind: "audiobookshelf" as const }, + {}, + ); return (await handler.getCachedOrUpdatedDataAsync({ forceUpdate: false })).data; }, } as const; diff --git a/packages/integrations/src/navidrome/navidrome-integration.ts b/packages/integrations/src/navidrome/navidrome-integration.ts index b96a59293..4d7609ea0 100644 --- a/packages/integrations/src/navidrome/navidrome-integration.ts +++ b/packages/integrations/src/navidrome/navidrome-integration.ts @@ -69,10 +69,7 @@ export class NavidromeIntegration extends Integration { private async getArtistCountAsync(): Promise { const response = await this.subsonicRequestAsync("/rest/getArtists.view", {}, { tolerateEmptyLibrary: true }); - return asArray(response.artists?.index).reduce( - (count, index) => count + asArray(index.artist).length, - 0, - ); + return asArray(response.artists?.index).reduce((count, index) => count + asArray(index.artist).length, 0); } private async getAlbumAndSongCountsAsync(): Promise<{ albumCount: number; songCount: number }> { diff --git a/packages/integrations/src/uptime-kuma/uptime-kuma-integration.ts b/packages/integrations/src/uptime-kuma/uptime-kuma-integration.ts index e9c519a24..ce494e599 100644 --- a/packages/integrations/src/uptime-kuma/uptime-kuma-integration.ts +++ b/packages/integrations/src/uptime-kuma/uptime-kuma-integration.ts @@ -94,8 +94,7 @@ export class UptimeKumaIntegration extends Integration { .map((monitor) => monitor.uptimePercent24h) .filter((value): value is number => value !== null); - const averageUptimePercent = - uptimeValues.reduce((sum, value) => sum + value, 0) / Math.max(uptimeValues.length, 1); + const averageUptimePercent = uptimeValues.reduce((sum, value) => sum + value, 0) / Math.max(uptimeValues.length, 1); return { totalMonitors: monitors.length,