Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
snissn committed Jan 18, 2023
1 parent ba344f8 commit a950b55
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ async function makeRequest(
}
case "formdata": {
myBody = new FormData();
//converting request.body to json above strips out file info
//so below access through request.body.formdata.members
//converting request.body to json above strips out file info
//so below access through request.body.formdata.members
if (Array.isArray(request.body.formdata.members)) {
for (const data of request.body.formdata.members) {
if (data.type == "file"){
myBody.append(data.key, data.value.content, "file");
}else{
if (data.type == "file") {
myBody.append(data.key, data.value.content, "file");
} else {
if (data.key && data.value) {
myBody.append(data.key, data.value);
}
Expand Down

0 comments on commit a950b55

Please sign in to comment.