Skip to content

Commit 5c29bae

Browse files
committed
fix4
1 parent 822b544 commit 5c29bae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • services/language_translation

services/language_translation/v2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,21 @@ module.exports = function (RED) {
123123
case 'forcedglossary':
124124
params = {
125125
name: msg.filename.replace(/[^0-9a-z]/gi, ''),
126-
base_model_id: model_id,
126+
base_model_id: '' + model_id + '',
127127
forced_glossary: fs.createReadStream(info.path)
128128
};
129129
break;
130130
case 'parallelcorpus':
131131
params = {
132132
name: msg.filename.replace(/[^0-9a-z]/gi, ''),
133-
base_model_id: model_id,
133+
base_model_id: '' + model_id + '',
134134
parallel_corpus: fs.createReadStream(info.path)
135135
};
136136
break;
137137
case 'monolingualcorpus':
138138
params = {
139139
name: msg.filename.replace(/[^0-9a-z]/gi, ''),
140-
base_model_id: model_id,
140+
base_model_id: '' + model_id + '',
141141
monolingual_corpus: fs.createReadStream(info.path)
142142
};
143143
break;

0 commit comments

Comments
 (0)