File tree Expand file tree Collapse file tree
services/personality_insights Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,9 +181,6 @@ module.exports = function (RED) {
181181 node . status ( { } ) ;
182182
183183 payloadCheck ( msg )
184- . then ( function ( ) {
185- return Promise . reject ( payloadutils . kuromojipath ( ) ) ;
186- } )
187184 . then ( function ( ) {
188185 return wordcountCheck ( msg , config ) ;
189186 } )
@@ -194,9 +191,11 @@ module.exports = function (RED) {
194191 return setEndPoint ( config ) ;
195192 } )
196193 . then ( function ( ) {
194+ return Promise . reject ( 'Got to prepareParams' ) ;
197195 return prepareParams ( msg , config ) ;
198196 } )
199197 . then ( function ( params ) {
198+
200199 node . status ( { fill :'blue' , shape :'dot' , text :'requesting' } ) ;
201200 return executeService ( msg , params ) ;
202201 } )
Original file line number Diff line number Diff line change @@ -154,18 +154,6 @@ PayloadUtils.prototype = {
154154 return code ;
155155 } ,
156156
157- kuromojipath : function ( ) {
158- var dic_path = '/../../kuromoji/dict' ;
159- var dic_dir = path . normalize ( __dirname + dic_path ) ;
160- var filelist = '' ;
161-
162- fs . readdirSync ( dic_dir ) . forEach ( ( file ) => {
163- filelist += ',' + file ;
164- } ) ;
165-
166- return filelist ;
167- } ,
168-
169157 // Function that is returns a function to count
170158 // the characters in each language.
171159 word_count : function ( ct ) {
You can’t perform that action at this time.
0 commit comments