From 3e7db081b6772ed246fd7e5c25733c6f3152f64e Mon Sep 17 00:00:00 2001 From: Holden Hu Date: Mon, 18 Nov 2024 15:04:13 +0800 Subject: [PATCH] fix: remove apiDomain var in assistant package (#479) --- assistant/src/services/UserController.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/assistant/src/services/UserController.ts b/assistant/src/services/UserController.ts index 8ac11b20..ff7816af 100644 --- a/assistant/src/services/UserController.ts +++ b/assistant/src/services/UserController.ts @@ -1,7 +1,5 @@ import axios from 'axios'; -const apiDomain = process.env.NEXT_PUBLIC_API_DOMAIN; - // Get the public bot profile by id export async function getUserInfo(apiDomain: string, { clientId }: { clientId?: string }) { const response = await axios.get(`${apiDomain}/api/auth/userinfo?clientId=${clientId}`, { withCredentials: true });