Skip to content

Commit c99a1bc

Browse files
authored
Merge pull request #4 from xwxnumber1xwx/master
fix issue when try to use non default classifierId
2 parents 153fdad + 36831a1 commit c99a1bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ app.post('/api/classify', async (req, res, next) => {
5757
}
5858
const classifyParams = {
5959
imagesFile: imageFile,
60-
classifier_ids: ['default']
60+
classifierIds: ['default']
6161
};
6262
try {
6363
const response = await client.classify(classifyParams);
@@ -80,4 +80,4 @@ app.post('/api/classify', async (req, res, next) => {
8080
// error-handler settings for all other routes
8181
require('./config/error-handler')(app);
8282

83-
module.exports = app;
83+
module.exports = app;

0 commit comments

Comments
 (0)