Skip to content

Commit a9fa36f

Browse files
committed
fix 400 error for showing problems.
1 parent bb09530 commit a9fa36f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/leetcode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ plugin.getProblem = function(problem, cb) {
138138
' enableRunCode',
139139
' metaData',
140140
' translatedContent',
141-
' discussCategoryId',
142141
' }',
143142
'}'
144143
].join('\n'),
@@ -166,7 +165,8 @@ plugin.getProblem = function(problem, cb) {
166165
problem.testcase = q.sampleTestCase;
167166
problem.testable = q.enableRunCode;
168167
problem.templateMeta = JSON.parse(q.metaData);
169-
problem.discuss = q.discussCategoryId;
168+
// @si-yao: seems below property is never used.
169+
//problem.discuss = q.discussCategoryId;
170170

171171
return cb(null, problem);
172172
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy