Skip to content

Commit

Permalink
Merge pull request #117 from BU-Spark/fixServerBugs
Browse files Browse the repository at this point in the history
bugFixes
  • Loading branch information
raheeqi authored Oct 22, 2024
2 parents 14d98d4 + 248fdd5 commit 3b2a4c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/graphql/resolvers/graphql_resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3b2a4c7

Please sign in to comment.