Skip to content

Commit

Permalink
fix: stage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo-amaral committed Mar 29, 2023
1 parent 9da3bd5 commit 02f90a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function apiWorker({
throw new Error('abortController must be instaced by AbortController');
}

let config: any = {
const config: any = {
method,
headers,
};
Expand All @@ -34,9 +34,9 @@ export async function apiWorker({

if (method !== ApiWorkerMethod.GET) {
if (typeof body === 'object') {
config['body'] = JSON.stringify(body);
config.body = JSON.stringify(body);
} else {
config['body'] = body;
config.body = body;
}
}

Expand Down

0 comments on commit 02f90a9

Please sign in to comment.