From 248fdd541504d0f76e37e41ed2198dc289ee98ef Mon Sep 17 00:00:00 2001 From: raheeqi Date: Tue, 22 Oct 2024 17:41:22 -0400 Subject: [PATCH] bugFixes --- backend/graphql/resolvers/graphql_resolvers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/graphql/resolvers/graphql_resolvers.ts b/backend/graphql/resolvers/graphql_resolvers.ts index 3b66292..56fa2b5 100644 --- a/backend/graphql/resolvers/graphql_resolvers.ts +++ b/backend/graphql/resolvers/graphql_resolvers.ts @@ -10,7 +10,7 @@ import { Collection } from "mongodb"; import { authMiddleware } from "../../authMiddleware.js"; import axios from "axios"; import { error } from "console"; -const proxy_Url = process.env.REACT_APP_ML_PIP_URL; +const proxy_Url = process.env.REACT_APP_ML_PIP_URL || "" import FormData from 'form-data'; import {createWriteStream} from 'fs'; import { GraphQLUpload } from "graphql-upload-minimal"; @@ -80,6 +80,8 @@ export const resolvers = { formData.append('user_id', userId); // Step 4: Send the file to an external API + + console.log('URL being used in production:', proxy_Url); const response = await axios.post( proxy_Url, formData,