Skip to content

Commit 10473b7

Browse files
committed
fix: indendations
1 parent 8175704 commit 10473b7

File tree

3 files changed

+85
-85
lines changed

3 files changed

+85
-85
lines changed

src/app/api/categories/[...handle]/route.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -124,36 +124,36 @@ async function getProductsByCategoryId(
124124
collection_id
125125
thumbnail
126126
images {
127-
url
128-
alt_text
129-
id
127+
url
128+
alt_text
129+
id
130130
}
131131
options {
132-
id
133-
value
134-
title
132+
id
133+
value
134+
title
135135
}
136136
variants {
137+
id
138+
title
139+
created_at
140+
updated_at
141+
thumbnail
142+
inventory_quantity
143+
material
144+
weight
145+
length
146+
height
147+
width
148+
options {
137149
id
150+
value
138151
title
139-
created_at
140-
updated_at
141-
thumbnail
142-
inventory_quantity
143-
material
144-
weight
145-
length
146-
height
147-
width
148-
options {
149-
id
150-
value
151-
title
152+
}
153+
price {
154+
price_set {
155+
id
152156
}
153-
price {
154-
price_set {
155-
id
156-
}
157157
}
158158
}
159159
}

src/app/api/collections/[handle]/route.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -116,36 +116,36 @@ async function getProductsByCollectionId(
116116
collection_id
117117
thumbnail
118118
images {
119-
url
120-
alt_text
121-
id
119+
url
120+
alt_text
121+
id
122122
}
123123
options {
124-
id
125-
value
126-
title
124+
id
125+
value
126+
title
127127
}
128128
variants {
129+
id
130+
title
131+
created_at
132+
updated_at
133+
thumbnail
134+
inventory_quantity
135+
material
136+
weight
137+
length
138+
height
139+
width
140+
options {
129141
id
142+
value
130143
title
131-
created_at
132-
updated_at
133-
thumbnail
134-
inventory_quantity
135-
material
136-
weight
137-
length
138-
height
139-
width
140-
options {
141-
id
142-
value
143-
title
144+
}
145+
price {
146+
price_set {
147+
id
144148
}
145-
price {
146-
price_set {
147-
id
148-
}
149149
}
150150
}
151151
}

src/app/api/products/route.ts

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -53,49 +53,49 @@ async function getProducts(params: Record<string, any>) {
5353
const productsQuery = `#graphql
5454
query($filters: Record, $id: String, $take: Int, $skip: Int) {
5555
products(filters: $filters, id: $id, take: $take, skip: $skip) {
56+
id
57+
title
58+
handle
59+
tags
60+
status
61+
collection
62+
collection_id
63+
thumbnail
64+
images {
65+
url
66+
alt_text
67+
id
68+
}
69+
options {
70+
id
71+
value
72+
title
73+
}
74+
variants {
75+
id
76+
title
77+
created_at
78+
updated_at
79+
thumbnail
80+
inventory_quantity
81+
material
82+
weight
83+
length
84+
height
85+
width
86+
options {
5687
id
88+
value
5789
title
58-
handle
59-
tags
60-
status
61-
collection
62-
collection_id
63-
thumbnail
64-
images {
65-
url
66-
alt_text
67-
id
68-
}
69-
options {
70-
id
71-
value
72-
title
73-
}
74-
variants {
75-
id
76-
title
77-
created_at
78-
updated_at
79-
thumbnail
80-
inventory_quantity
81-
material
82-
weight
83-
length
84-
height
85-
width
86-
options {
87-
id
88-
value
89-
title
90-
}
91-
price {
92-
price_set {
93-
id
94-
}
95-
}
90+
}
91+
price {
92+
price_set {
93+
id
9694
}
95+
}
9796
}
98-
}`
97+
}
98+
}`
9999

100100
const {
101101
rows: products,

0 commit comments

Comments
 (0)