File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ plugin.getProblems = function(cb) {
77
77
const title = titles [ problem . fid ] ;
78
78
if ( title )
79
79
problem . name = title ;
80
+ problem . fid = Number ( fid ) || fid
80
81
} ) ;
81
82
82
83
return cb ( null , problems ) ;
@@ -97,12 +98,11 @@ plugin.getProblemsTitle = function(cb) {
97
98
'query getQuestionTranslation($lang: String) {' ,
98
99
' translations: allAppliedQuestionTranslations(lang: $lang) {' ,
99
100
' title' ,
100
- ' question {' ,
101
- ' questionId' ,
102
- ' }' ,
101
+ ' questionId' ,
102
+ ' __typename' ,
103
103
' }' ,
104
104
'}' ,
105
- ''
105
+ '' ,
106
106
] . join ( '\n' ) ,
107
107
variables : { } ,
108
108
operationName : 'getQuestionTranslation'
@@ -116,7 +116,7 @@ plugin.getProblemsTitle = function(cb) {
116
116
117
117
const titles = [ ] ;
118
118
body . data . translations . forEach ( function ( x ) {
119
- titles [ x . question . questionId ] = x . title ;
119
+ titles [ x . questionId ] = x . title ;
120
120
} ) ;
121
121
122
122
return cb ( null , titles ) ;
You can’t perform that action at this time.
0 commit comments