8000 Clean: Remove duplicate query · PrashanthaTP/leetcode-client@011a1e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 011a1e1

Browse files
committed
Clean: Remove duplicate query
1 parent 78def57 commit 011a1e1

File tree

1 file changed

+9
-34
lines changed

1 file changed

+9
-34
lines changed

queries/queries.js

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export const getExampleQuestionQuery = {
7676
};
7777

7878
export const getDailyChallengeQuery = {
79-
operationName: "questionOfToday",
80-
query: `query questionOfToday {
79+
operationName: "questionOfToday",
80+
query: `query questionOfToday {
8181
activeDailyCodingChallengeQuestion {
8282
date
8383
userStatus
@@ -95,6 +95,12 @@ export const getDailyChallengeQuery = {
9595
titleSlug
9696
hasVideoSolution
9797
hasSolution
98+
codeSnippets {
99+
lang
100+
langSlug
101+
code
102+
__typename
103+
}
98104
topicTags {
99105
name
100106
id
@@ -103,40 +109,9 @@ export const getDailyChallengeQuery = {
103109
}
104110
}
105111
}`,
106-
};
107-
export const getQuestionOfTodayQuery = {
108-
query: `
109-
query questionOfToday {
110-
activeDailyCodingChallengeQuestion {
111-
date
112-
userStatus
113-
link
114-
question {
115-
acRate
116-
difficulty
117-
freqBar
118-
frontendQuestionId: questionFrontendId
119-
isFavor
120-
paidOnly: isPaidOnly
121-
status
122-
title
123-
content
124-
titleSlug
125-
hasVideoSolution
126-
hasSolution
127-
topicTags {
128-
name
129-
id
130-
slug
131-
}
132-
}
133-
}
134-
}`,
135-
variables: {},
136-
};
112+
}
137113

138114
export default {
139115
getExampleQuestionQuery,
140116
getDailyChallengeQuery,
141-
getQuestionOfTodayQuery,
142117
};

0 commit comments

Comments
 (0)
0