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

Diff for: lib/plugins/leetcode.js

+2-2
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)