diff --git a/src/handlers/fetch-api/index.ts b/src/handlers/fetch-api/index.ts index 42f0512..3bc2ff5 100644 --- a/src/handlers/fetch-api/index.ts +++ b/src/handlers/fetch-api/index.ts @@ -2,6 +2,5 @@ export * from "./create-app-register-handler"; export * from "./create-manifest-handler"; export * from "./create-protected-handler"; export * from "./process-protected-handler"; -// export * from "./saleor-webhooks/saleor-async-webhook"; -// export * from "./saleor-webhooks/saleor-sync-webhook"; -// export * from "./saleor-webhooks/sync-webhook-response-builder"; +export * from "./saleor-webhooks/saleor-async-webhook"; +export * from "./saleor-webhooks/saleor-sync-webhook"; diff --git a/src/handlers/fetch-api/saleor-webhooks/saleor-webhook.ts b/src/handlers/fetch-api/saleor-webhooks/saleor-webhook.ts index 1d8e378..f4f7119 100644 --- a/src/handlers/fetch-api/saleor-webhooks/saleor-webhook.ts +++ b/src/handlers/fetch-api/saleor-webhooks/saleor-webhook.ts @@ -129,7 +129,7 @@ export abstract class SaleorWebApiWebhook< return async (req) => { debug(`Handler for webhook ${this.name} called`); - await processSaleorWebhook({ + return processSaleorWebhook({ req, apl: this.apl, allowedEvent: this.event,