Skip to content

Commit 8fd7f1c

Browse files
committed
PR feedback
1 parent 7eb3d03 commit 8fd7f1c

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

.graphqlrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ function getProjects(path) {
2525
}
2626

2727
const projects = {
28-
...getProjects("sample-apps/discounts-tutorial/extensions"),
2928
...getProjects("sample-apps/discounts/extensions"),
3029
...getProjects("checkout/rust/delivery-customization"),
3130
...getProjects("checkout/rust/payment-customization"),

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"discounts/rust/product-discounts/fixed-amount/Cargo.toml",
1010
"discounts/rust/shipping-discounts/default/Cargo.toml",
1111
"discounts/rust/shipping-discounts/fixed-amount/Cargo.toml",
12-
"sample-apps/discounts-tutorial/extensions/volume/Cargo.toml",
1312
"sample-apps/discounts/extensions/product-discount/Cargo.toml"
1413
]
1514
}

sample-apps/discounts/web/index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,7 @@ app.use("/api/*", shopify.validateAuthenticatedSession());
161161

162162
app.use(express.json());
163163

164-
// Helper function for handling any user-facing errors in GraphQL responses
165-
function handleUserError(userErrors, res) {
166-
if (userErrors && userErrors.length > 0) {
167-
const message = userErrors.map((error) => error.message).join(' ');
168-
res.status(500).send({ error: message });
169-
return true;
170-
}
171-
return false;
172-
}
173-
174164
const runDiscountMutation = async (req, res, mutation) => {
175-
const payload = req.body;
176165
const graphqlClient = new shopify.api.clients.Graphql({
177166
session: res.locals.shopify.session
178167
});

0 commit comments

Comments
 (0)