Skip to content

Commit

Permalink
Might be smart to actually return the data
Browse files Browse the repository at this point in the history
  • Loading branch information
Exhabition committed Sep 27, 2021
1 parent 16cd86b commit a7e2862
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -113,6 +112,8 @@ class Client {
}).catch(error => error.response);

if (options?.useAdvancedPreviews) convertMediaPreviews(result.data?.result);

return result.data;
}
}

Expand Down

0 comments on commit a7e2862

Please sign in to comment.