Skip to content

Commit

Permalink
Fix tempid arg list case.
Browse files Browse the repository at this point in the history
  • Loading branch information
whilo committed Sep 26, 2024
1 parent 87b713e commit 6ba8f59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/datahike/api/specification.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
(partition 2 args)))]

(= op 's/alt)
(vec (mapcat (fn [[_k v]]
(spec-args->argslist v))
(vec (mapcat (fn [[k v]]
(if (seq? v)
(spec-args->argslist v)
[[(symbol (name k))]]))
(partition 2 args)))
:else
[]))))
Expand Down

0 comments on commit 6ba8f59

Please sign in to comment.