diff --git a/http-client.env.json b/http-client.env.json index 8523d1e..81e307d 100644 --- a/http-client.env.json +++ b/http-client.env.json @@ -6,6 +6,6 @@ "baseUrl": "http://localhost:3000" }, "prod": { - "baseUrl": "http://localhost:3000" + "baseUrl": "https://api-dev.healahealth.app/v1" } } diff --git a/src/common/modules/open-router/providers/open-router.service.ts b/src/common/modules/open-router/providers/open-router.service.ts index 0d15800..e09e4fd 100644 --- a/src/common/modules/open-router/providers/open-router.service.ts +++ b/src/common/modules/open-router/providers/open-router.service.ts @@ -24,7 +24,7 @@ export class OpenRouterService implements OnModuleDestroy { } private async createOpenRouter() { - const { ProxyAgent, fetch: undiciFetch } = await import('undici'); + const { ProxyAgent } = await import('undici'); const { HTTPClient, OpenRouter } = await import('@openrouter/sdk'); const env = this.configService.get('app.environment'); @@ -58,17 +58,14 @@ export class OpenRouterService implements OnModuleDestroy { try { const httpClient = new HTTPClient({ fetcher: async (input, init) => { - const response = await undiciFetch( - input as string | URL, - { - ...init, - dispatcher: proxyAgent, - } as Parameters[1] & { - dispatcher: typeof proxyAgent; - }, - ); + const response = await globalThis.fetch(input, { + ...init, + dispatcher: proxyAgent, + } as RequestInit & { + dispatcher: typeof proxyAgent; + }); - return response as unknown as Response; + return response; }, }); diff --git a/src/modules/auth/http/login.post.endpoints.http b/src/modules/auth/http/login.post.endpoints.http index e91fb4a..03c2e40 100644 --- a/src/modules/auth/http/login.post.endpoints.http +++ b/src/modules/auth/http/login.post.endpoints.http @@ -3,7 +3,7 @@ Content-Type: application/json lang: fa { - "phone": "09333026363", + "phone": "09121212123", "password": "Password1@" } diff --git a/src/modules/auth/http/verify-otp.post.endpoints.http b/src/modules/auth/http/verify-otp.post.endpoints.http index c093bec..5ca602a 100644 --- a/src/modules/auth/http/verify-otp.post.endpoints.http +++ b/src/modules/auth/http/verify-otp.post.endpoints.http @@ -2,8 +2,8 @@ POST {{baseUrl}}/auth/verify-otp Content-Type: application/json { - "phone": "09333026363", - "otp": "50226" + "phone": "09121212123", + "otp": "71288" } {{ diff --git a/src/modules/users/http/users.patch.endpoints.http b/src/modules/users/http/users.patch.endpoints.http index 9f639f6..7159012 100644 --- a/src/modules/users/http/users.patch.endpoints.http +++ b/src/modules/users/http/users.patch.endpoints.http @@ -4,8 +4,8 @@ Authorization: Bearer {{$global.accessToken}} lang: fa { - "firstName": "رادمهر", - "lastName": "ترناس", + "firstName": "تست", + "lastName": "تستعلی", "password": "Password1@", "confirmPassword": "Password1@" } \ No newline at end of file