From 7267e86c6d7b0ff1296035845d427d1815dfb7a7 Mon Sep 17 00:00:00 2001 From: Austin Cain Date: Wed, 25 Oct 2023 23:35:30 +0000 Subject: [PATCH] Rephrashing GDPR terminology in Shopify/shopify-app-template-node --- web/index.js | 4 ++-- web/{gdpr.js => privacy.js} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename web/{gdpr.js => privacy.js} (95%) diff --git a/web/index.js b/web/index.js index f4a1420a..fe7bc7b5 100644 --- a/web/index.js +++ b/web/index.js @@ -6,7 +6,7 @@ import serveStatic from "serve-static"; import shopify from "./shopify.js"; import productCreator from "./product-creator.js"; -import GDPRWebhookHandlers from "./gdpr.js"; +import PrivacyWebhookHandlers from "./privacy.js"; const PORT = parseInt( process.env.BACKEND_PORT || process.env.PORT || "3000", @@ -29,7 +29,7 @@ app.get( ); app.post( shopify.config.webhooks.path, - shopify.processWebhooks({ webhookHandlers: GDPRWebhookHandlers }) + shopify.processWebhooks({ webhookHandlers: PrivacyWebhookHandlers }) ); // If you are adding routes outside of the /api path, remember to diff --git a/web/gdpr.js b/web/privacy.js similarity index 95% rename from web/gdpr.js rename to web/privacy.js index 332fc68a..4b933a3a 100644 --- a/web/gdpr.js +++ b/web/privacy.js @@ -6,7 +6,7 @@ import { DeliveryMethod } from "@shopify/shopify-api"; export default { /** * Customers can request their data from a store owner. When this happens, - * Shopify invokes this webhook. + * Shopify invokes this privacy webhook. * * https://shopify.dev/docs/apps/webhooks/configuration/mandatory-webhooks#customers-data_request */ @@ -38,7 +38,7 @@ export default { /** * Store owners can request that data is deleted on behalf of a customer. When - * this happens, Shopify invokes this webhook. + * this happens, Shopify invokes this privacy webhook. * * https://shopify.dev/docs/apps/webhooks/configuration/mandatory-webhooks#customers-redact */ @@ -67,7 +67,7 @@ export default { /** * 48 hours after a store owner uninstalls your app, Shopify invokes this - * webhook. + * privacy webhook. * * https://shopify.dev/docs/apps/webhooks/configuration/mandatory-webhooks#shop-redact */