diff options
| author | eltrac <hi@eltr.ac> | 2026-09-23 15:05:54 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-09-23 15:06:18 +0800 |
| commit | 6552465ebbcca3fa861176eedf12cdf65be29d15 (patch) | |
| tree | 936218c689897ae8a961932e01ddb9a95e2e6e31 /src | |
| parent | 8b25267ae48c75e6fce7d2f7b384f69b4771a23d (diff) | |
webhook: fix not identifying custom functions as functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/weepinbell/webhook.clj | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
