Skip to content

Commit

Permalink
Updated batch function retract-attr-vals to use the passed on event v…
Browse files Browse the repository at this point in the history
…alue #304
  • Loading branch information
mluypaert committed Sep 9, 2020
1 parent da65b93 commit 097c647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wormbase/names/batch/generic.clj
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@

(defn retract-attr-vals
"Retract values associated with attributes for a matching set of entities."
[uiident attr _ spec conformer request]
[uiident attr event spec conformer request]
(let [{payload :body-params conn :conn} request
ent-type (namespace uiident)
data (:data payload)
prov (wnp/assoc-provenance request payload :event/remove-cgc-names)
prov (wnp/assoc-provenance request payload event)
conformed (conformer spec data)]
(if (s/invalid? conformed)
(bad-request {:data data})
Expand Down

0 comments on commit 097c647

Please sign in to comment.