Skip to content

Commit

Permalink
CMR-10232: Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoroolivares2016 committed Nov 4, 2024
1 parent 3fa5549 commit 7223374
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/domains/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const selfLinks = (req: Request, item: STACItem) => {
}

const { id, collection } = item;

const providerId = provider["provider-id"];
const itemId = encodeURIComponent(id);
const collectionId = encodeURIComponent(collection as string);
Expand Down Expand Up @@ -305,6 +306,7 @@ export const getItemIds = async (
*/
export const addProviderLinks = (req: Request, item: STACItem): STACItem => {
const providerLinks = selfLinks(req, item);

item.links = [...providerLinks, ...(item.links ?? [])];

return item;
Expand Down

0 comments on commit 7223374

Please sign in to comment.