Skip to content

Commit 6cc6e58

Browse files
cdxkerskeptrunedev
authored andcommitted
bugfix: fix webhooks to get the correct apiKey
1 parent d0ce153 commit 6cc6e58

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clients/trieve-shopify-extension/app/routes/webhooks.app.products.create.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
2323

2424
const current = payload as ProductWebhook;
2525
const apiKey = await db.apiKey.findFirst({
26-
where: { shop: `https://${shop}` },
26+
where: { shop: `${shop}` },
2727
});
2828

2929
if (!apiKey) {

clients/trieve-shopify-extension/app/routes/webhooks.app.products.delete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
1111

1212
const current = payload as { id: string };
1313
const apiKey = await db.apiKey.findFirst({
14-
where: { shop: `https://${shop}` },
14+
where: { shop: `${shop}` },
1515
});
1616

1717
if (!apiKey) {

clients/trieve-shopify-extension/app/routes/webhooks.app.products.update.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
1212

1313
const current = payload as ProductWebhook;
1414
const apiKey = await db.apiKey.findFirst({
15-
where: { shop: `https://${shop}` },
15+
where: { shop: `${shop}` },
1616
});
1717

1818
if (!apiKey) {

0 commit comments

Comments
 (0)