From fc8b92377de1d1d6966d6c7f327ad7334db068fd Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 29 May 2026 20:39:30 +0200 Subject: [PATCH] Refactoring --- apps/api/src/services/fetch/fetch.service.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/api/src/services/fetch/fetch.service.ts b/apps/api/src/services/fetch/fetch.service.ts index fd7ca18ad..85f198a82 100644 --- a/apps/api/src/services/fetch/fetch.service.ts +++ b/apps/api/src/services/fetch/fetch.service.ts @@ -102,13 +102,10 @@ export class FetchService { private async fetchViaWebFetchTool( url: string ): Promise { - const openRouterApiKey = await this.propertyService.getByKey( - PROPERTY_API_KEY_OPENROUTER - ); - - const openRouterModel = await this.propertyService.getByKey( - PROPERTY_OPENROUTER_MODEL - ); + const [openRouterApiKey, openRouterModel] = await Promise.all([ + this.propertyService.getByKey(PROPERTY_API_KEY_OPENROUTER), + this.propertyService.getByKey(PROPERTY_OPENROUTER_MODEL) + ]); if (!openRouterApiKey || !openRouterModel) { return undefined;