From 36831a1d24b862591d8555f4833f1e3968cc341c Mon Sep 17 00:00:00 2001 From: Daniele Caputo <32809282+xwxnumber1xwx@users.noreply.github.com> Date: Tue, 4 Feb 2020 10:24:51 +0100 Subject: [PATCH] fix issue when try to use non default classifierId --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 2ef2b46..6d227e8 100644 --- a/app.js +++ b/app.js @@ -57,7 +57,7 @@ app.post('/api/classify', async (req, res, next) => { } const classifyParams = { imagesFile: imageFile, - classifier_ids: ['default'] + classifierIds: ['default'] }; try { const response = await client.classify(classifyParams); @@ -80,4 +80,4 @@ app.post('/api/classify', async (req, res, next) => { // error-handler settings for all other routes require('./config/error-handler')(app); -module.exports = app; \ No newline at end of file +module.exports = app;