Skip to content

Commit

Permalink
chore: update digial listing filter
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Oct 2, 2020
1 parent 3d11729 commit d5eeb85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Generate a csv file for your etsy store, originally made for an instagram shop b
- `ETSY_DOMAIN` will be the domain you provide facebook/instagram
- `ETSY_SHOP_SLUG` is what shows up after https://etsy.com/

4. In my usecase I wanted to filter out `downloadable` products, if you want to keep them, remove everything on this [line](https://github.com/mcansh/etsy-csv-generator/blob/0d7667fd75a0b9914fd95b57fa91225cace70fb6/src/index.ts#L57) after `data.results`
4. In my usecase I wanted to filter out `downloadable` products, if you want to keep them, remove everything on this [line](https://github.com/mcansh/etsy-csv-generator/blob/main/src/index.ts#L57) after `data.results`
5. Build the app `npm run build`
6. Run it! `node dist`
7. You'll now have an `output.csv` in the root of the project :)
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function fetchShopListings(

const data = await typedFetch<ApiResponse>(url);

const items = data.results.filter((item) => !item.url.includes("download"));
const items = data.results.filter((item) => !item.is_digital);

const nextPage = data.pagination.next_page;

Expand Down

0 comments on commit d5eeb85

Please sign in to comment.