Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/exceptions/FortniteAPIError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { FortniteAPIErrorData } from '../http/httpStructs';
* Represets a Fortnite-API HTTP error
*/
class FortniteAPIError extends Error {
/**
* The HTTP method
*/
public method: string;

/**
* The URL of the requested API endpoint
*/
Expand All @@ -35,7 +30,6 @@ class FortniteAPIError extends Error {
this.name = 'FortniteAPIError';
this.message = error.error;

this.method = request.method!.toUpperCase();
this.url = request.url!;
this.httpStatus = status;
this.requestParams = request.params;
Expand Down
2 changes: 1 addition & 1 deletion src/http/HTTP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HTTP {
};

try {
const response = await this.axios(config);
const response = await instance(config);

return response.data;
} catch (e) {
Expand Down