Skip to content

Commit

Permalink
remove Deno.writeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
lui-dias committed Dec 20, 2024
1 parent eb3393d commit 42357ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions logicommerce/loaders/productDetailsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const loader = async (
headers: req.headers,
}).then((res) => res.json());

Deno.writeTextFileSync("products.json", JSON.stringify(products, null, 2));

return {
"@type": "ProductDetailsPage",
breadcrumbList: {
Expand Down
2 changes: 0 additions & 2 deletions logicommerce/loaders/productList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ const loader = async (
headers: req.headers,
}).then((res) => res.json());

Deno.writeTextFileSync("products.json", JSON.stringify(products, null, 2));

return products.items?.map(toProduct) ?? [];
};

Expand Down
2 changes: 0 additions & 2 deletions logicommerce/loaders/productListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ const loader = (

// const products = await ctx.api['GET /products'](params, { headers: req.headers }).then(res => res.json())

// Deno.writeTextFileSync('products.json', JSON.stringify(products, null, 2))

// return products.items?.map(toProduct) ?? []
};

Expand Down

0 comments on commit 42357ba

Please sign in to comment.