Skip to content

Commit

Permalink
/deploy sit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed May 22, 2024
1 parent 39bf43b commit 55ca584
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/client/harmony.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ async function subset(job, accessToken) {
url += `&subset=lon(${west}:${east})`;
//url += `&subset=time("${startDate}":"${endDate}")`;
// add granule names
const formData = new FormData();
granuleNames.forEach((granuleName) => {
url += `&granuleName=${granuleName}`;
});
granuleIds.forEach((granuleId) => {
formData.append("granuleId", granuleId);
url += `&granuleId=${granuleId}`;
});
if(merge) url += `&concatenate=true`;
Expand All @@ -46,6 +48,7 @@ async function subset(job, accessToken) {
headers: {
Authorization: `Bearer ${accessToken}`,
},
body: formData
});
text = await response.text();
} catch (error) {
Expand Down

0 comments on commit 55ca584

Please sign in to comment.