Skip to content

Commit 85bb11f

Browse files
committed
🐞 fix(DailyPicak): Fix Problem ID field
+ Fix the daily question query string on leetcodeCN + Fix the daily question id field
1 parent f539057 commit 85bb11f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const dailyQueryStrCn = `
172172
query questionOfToday {
173173
todayRecord {
174174
question {
175-
questionId
175+
frontendQuestionId: questionFrontendId
176176
}
177177
}
178178
}
@@ -195,7 +195,7 @@ export const getDailyProblemID = (res : AxiosResponse<any, any>) => {
195195
const point = leetCodeConfig.get<string>("endpoint", Endpoint.LeetCode);
196196
switch (point) {
197197
case Endpoint.LeetCodeCN:
198-
return res.data.data.todayRecord[0].question.questionId;
198+
return res.data.data.todayRecord[0].question.frontendQuestionId;
199199
case Endpoint.LeetCode:
200200
default:
201201
return res.data.data.activeDailyCodingChallengeQuestion.question.frontendQuestionId;

0 commit comments

Comments
 (0)