From 76f23a7093f33fb80e1989172395423f0d8b3cfa Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Wed, 20 Oct 2021 10:36:34 +0800 Subject: [PATCH] stupid small mistake fixed --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1a63fbc..c6ee4bd 100644 --- a/index.js +++ b/index.js @@ -308,9 +308,11 @@ module.exports = { if (backend==='UNICLOUD'){ const resultCloud = await this.pickupFile2Cloud({mediaType, count, sizeType, sourceType, maxDuration }) return resultCloud - }else // if (backend==='SERVER'){ + }else if (backend==='SERVER'){ const resultServer = await this.pickupFile2Server({mediaType, count, sizeType, sourceType, maxDuration, url, header, formData, name}) return resultServer + }else { + return { _state: 'CLEINT_FAIL_UNKNOWN_BACKEND_TYPE', backend } } },