summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/weepinbell/webhook.clj6
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