File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,13 @@ import * as dotenv from "dotenv";
7
7
8
8
dotenv . config ( ) ;
9
9
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" ;
13
12
14
13
export const createSingleLeetcodeQuestion = async (
15
14
data : NewQuestionData
16
15
) : Promise < QuestionFull > => {
17
16
const url = `${ QUESTION_SERVICE } /create` ;
18
- console . log ( url ) ;
19
17
const resp = await fetch ( url , {
20
18
method : "POST" ,
21
19
headers : {
@@ -38,7 +36,6 @@ export const getLeetcodeDashboardData = async (): Promise<
38
36
QuestionMinified [ ]
39
37
> => {
40
38
const url = `${ QUESTION_SERVICE } /all` ;
41
- console . log ( url ) ;
42
39
const response = await fetch ( url ) ;
43
40
const data = await response . json ( ) ;
44
41
return data ;
@@ -61,7 +58,6 @@ export const updateSingleLeetcodeQuestion = async ({
61
58
complexity,
62
59
} : QuestionFull ) => {
63
60
const url = `${ QUESTION_SERVICE } /${ questionId } /update` ;
64
- console . log ( url ) ;
65
61
const resp = await fetch ( url , {
66
62
method : "POST" ,
67
63
headers : {
@@ -84,7 +80,6 @@ export const updateSingleLeetcodeQuestion = async ({
84
80
85
81
export const deleteSingleLeetcodeQuestion = async ( questionId : string ) => {
86
82
const url = `${ QUESTION_SERVICE } /${ questionId } /delete` ;
87
- console . log ( url ) ;
88
83
const resp = await fetch ( url , {
89
84
method : "POST" ,
90
85
headers : {
You can’t perform that action at this time.
0 commit comments