From a7e28623961a3503288f7a77b86994dfb220fc00 Mon Sep 17 00:00:00 2001 From: Exhabition Date: Mon, 27 Sep 2021 18:33:57 +0200 Subject: [PATCH] Might be smart to actually return the data --- src/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 177ea26..652a544 100644 --- a/src/index.js +++ b/src/index.js @@ -6,10 +6,9 @@ const { BASE_URL, ACCOUNT_ENDPOINT, SEARCH_ENDPOINT } = require("../constants/en const { FILE_SIZES } = require("../constants/fileInfo.json"); // Config -const axiosConfig = create({ +const { get, post } = create({ baseURL: BASE_URL, -}) -const { get, post } = axiosConfig; +}); // Helper const { getTraceSettings, convertMediaPreviews } = require("./helper"); @@ -113,6 +112,8 @@ class Client { }).catch(error => error.response); if (options?.useAdvancedPreviews) convertMediaPreviews(result.data?.result); + + return result.data; } }