Skip to content

Commit

Permalink
Merge pull request #25 from mattgstevens/fix/plugin_base
Browse files Browse the repository at this point in the history
fix: plugin_base functions need dcfg as first argument
  • Loading branch information
alexandergunnarson committed Apr 16, 2017
2 parents 78f62c0 + 61c951b commit 036dcd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/posh/plugin_base.cljc
Expand Up @@ -17,9 +17,9 @@
(vector? id)
(if-let [eid ((:entid dcfg) db id)]
((:pull* dcfg) db query eid)
(missing-pull-result query))
(missing-pull-result dcfg query))
(nil? id)
(missing-pull-result query)))
(missing-pull-result dcfg query)))

;; need to set last-tx-t in conn so that it doesn't try the same tx twice
(defn set-conn-listener! [dcfg posh-atom conn db-id]
Expand Down Expand Up @@ -124,7 +124,7 @@
"Returns a reaction of a pull expression. The options argument may specify `:cache :forever`, which keeps query results
cached indefinitely, even if the reaction is disposed."
([dcfg poshdb pull-pattern eid options]
(let [true-poshdb (get-db poshdb)
(let [true-poshdb (get-db dcfg poshdb)
storage-key [:pull true-poshdb pull-pattern eid]
posh-atom (get-posh-atom dcfg poshdb)]
(make-query-reaction dcfg
Expand Down

0 comments on commit 036dcd3

Please sign in to comment.