Skip to content

Commit

Permalink
sort by price
Browse files Browse the repository at this point in the history
  • Loading branch information
toddwords committed Nov 13, 2024
1 parent dab0526 commit 065fdc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ app.get("/store", async (req, res) => {


const response = await getDatabaseEntries(NOTION_STORE_DATABASE_ID, [
{ property: "Name", direction: "descending" },
{ property: "Cost", direction: "ascending" },
]);
console.log(response);

Expand Down
8 changes: 4 additions & 4 deletions public/templates/store/storefront.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@

{{#each products}}
{{#if publish}}
{{#eq type "Merch"}}
{{!-- {{#eq type "Merch"}} --}}

<div id="{{this.[Website-Slug]}}"
class="grid-4 featured {{this.[Website-Slug]}} product" data-location="
Expand Down Expand Up @@ -177,10 +177,10 @@



{{/eq}}
{{!-- {{/eq}} --}}
{{/if}}
{{/each}}
{{#each products}}
{{!-- {{#each products}}
{{#if publish}}
{{#if availableForSale}}
{{#eq type "Printed Matter"}}
Expand Down Expand Up @@ -237,7 +237,7 @@
{{/eq}}
{{/if}}
{{/if}}
{{/each}}
{{/each}} --}}



Expand Down

0 comments on commit 065fdc2

Please sign in to comment.