Skip to content

Commit

Permalink
Remove number/amount field from product collection
Browse files Browse the repository at this point in the history
  • Loading branch information
dhzdhd committed Oct 31, 2023
1 parent 8ec47aa commit 55638c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions backend/src/api/product/content-types/product/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
"audios"
]
},
"number": {
"type": "decimal",
"required": true
},
"bid_price": {
"type": "biginteger",
"required": true
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/routes/home/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export interface Product {
auctionStart: string;
price: number;
bidPrice: number;
amount: number;
description: string;
available: boolean;
image: Image;
Expand Down Expand Up @@ -59,7 +58,6 @@ export const load: LayoutServerLoad = async ({ cookies }) => {
auctionStart: e['attributes']['auction_start'],
price: e['attributes']['price'],
bidPrice: e['attributes']['bid_price'],
amount: e['attributes']['number'],
description: e['attributes']['description'],
available: e['attributes']['available'],
category: e['attributes']['category']['data']['attributes']['name'],
Expand Down

0 comments on commit 55638c9

Please sign in to comment.