From 6552465ebbcca3fa861176eedf12cdf65be29d15 Mon Sep 17 00:00:00 2001 From: eltrac Date: Wed, 23 Sep 2026 15:05:54 +0800 Subject: webhook: fix not identifying custom functions as functions --- src/weepinbell/webhook.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/weepinbell/webhook.clj b/src/weepinbell/webhook.clj index 4a16fdf..c9679aa 100644 --- a/src/weepinbell/webhook.clj +++ b/src/weepinbell/webhook.clj @@ -28,8 +28,10 @@ (keyword? request-fn) ((get request-presets request-fn) event-key data) ;; use custom fn - (symbol? request-fn) - (request-fn event-key data))) + (fn? request-fn) + (request-fn event-key data) + ;; + :else (timbre/warn "unknown request-fn type"))) ;; NOTE this looks ugly but it gets the job done ;; will use an extensible function if we need to -- cgit v1.2.3