Skip to content

Commit

Permalink
revert submit failing on normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbrt committed Jan 15, 2025
1 parent 74c2866 commit a007d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/clojure/oph/va/hakija/handlers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
(let [{:keys [hakemus submission validation parent-hakemus]} (get-current-answers haku-id hakemus-id form-key)]
(hakemus-ok-response hakemus submission validation parent-hakemus)))

(defn try-store-normalized-hakemus [tx hakemus-id hakemus answers haku-id]
(defn try-store-normalized-hakemus [tx hakemus-id hakemus answers]
(try
(va-db/store-normalized-hakemus tx hakemus-id hakemus answers)
true
Expand Down Expand Up @@ -286,7 +286,7 @@
(:register_number hakemus)
answers
budget-totals)]
(try-store-normalized-hakemus tx (:id hakemus) hakemus answers haku-id)
(with-tx (fn [tx] (try-store-normalized-hakemus tx (:id hakemus) hakemus answers)))
(va-submit-notification/send-submit-notifications! va-email/send-hakemus-submitted-message! false answers submitted-hakemus avustushaku (:id hakemus))
(hakemus-ok-response submitted-hakemus saved-submission validation nil))
(hakemus-conflict-response hakemus))
Expand Down

0 comments on commit a007d06

Please sign in to comment.