Skip to content

Commit

Permalink
/deploy sit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed May 30, 2024
1 parent 614f4c0 commit a2b6558
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/client/harmony.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ async function subset(job, accessToken) {
url += `&subset=lon(${west}:${east})`;

// add granule names
const formData = new FormData();
// const formData = new FormData();

const formData = new URLSearchParams();

granuleIds.forEach((granuleId) => {
formData.append("granuleId", granuleId);
// formData.append("granuleId", granuleId);
formData.append('granuleId', granuleId);
});
if(merge) url += `&concatenate=true`;

Expand All @@ -54,7 +57,7 @@ async function subset(job, accessToken) {
body: formData
};
logger.debug(message);

text = await response.text();
} catch (error) {
throw new Error("Harmony.subset() - Error fetching -> " + error.message);
Expand Down

0 comments on commit a2b6558

Please sign in to comment.