This commit is contained in:
djkato 2024-07-15 16:02:17 +02:00
parent 08b35291bd
commit 7af5ceac2d

View file

@ -37,6 +37,8 @@ pub async fn webhooks(
.get(SALEOR_API_URL_HEADER) .get(SALEOR_API_URL_HEADER)
.context("missing saleor api url header")?; .context("missing saleor api url header")?;
let event_type = get_webhook_event_type(&headers)?; let event_type = get_webhook_event_type(&headers)?;
// In this case I disagree with this hint
#[allow(clippy::collapsible_match)]
if let EitherWebhookType::Async(a) = event_type { if let EitherWebhookType::Async(a) = event_type {
match a { match a {
AsyncWebhookEventType::ProductUpdated AsyncWebhookEventType::ProductUpdated