Skip to content

Commit ab9924b

Browse files
committed
Hardcode string
1 parent dddd560 commit ab9924b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

frontend/src/api/leetcode-dashboard.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ import * as dotenv from "dotenv";
77

88
dotenv.config();
99

10-
const QUESTION_SERVICE = process.env.NEXT_PUBLIC_QUESTION_SERVICE;
11-
12-
console.log(QUESTION_SERVICE);
10+
const QUESTION_SERVICE =
11+
"https://question-service-598285527681.us-central1.run.app/api";
1312

1413
export const createSingleLeetcodeQuestion = async (
1514
data: NewQuestionData
1615
): Promise<QuestionFull> => {
1716
const url = `${QUESTION_SERVICE}/create`;
18-
console.log(url);
1917
const resp = await fetch(url, {
2018
method: "POST",
2119
headers: {
@@ -38,7 +36,6 @@ export const getLeetcodeDashboardData = async (): Promise<
3836
QuestionMinified[]
3937
> => {
4038
const url = `${QUESTION_SERVICE}/all`;
41-
console.log(url);
4239
const response = await fetch(url);
4340
const data = await response.json();
4441
return data;
@@ -61,7 +58,6 @@ export const updateSingleLeetcodeQuestion = async ({
6158
complexity,
6259
}: QuestionFull) => {
6360
const url = `${QUESTION_SERVICE}/${questionId}/update`;
64-
console.log(url);
6561
const resp = await fetch(url, {
6662
method: "POST",
6763
headers: {
@@ -84,7 +80,6 @@ export const updateSingleLeetcodeQuestion = async ({
8480

8581
export const deleteSingleLeetcodeQuestion = async (questionId: string) => {
8682
const url = `${QUESTION_SERVICE}/${questionId}/delete`;
87-
console.log(url);
8883
const resp = await fetch(url, {
8984
method: "POST",
9085
headers: {

0 commit comments

Comments
 (0)