Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
AE-2036: Run actions inside of response
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-juhohaa committed Dec 12, 2023
1 parent 3eb14b6 commit 6518c15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions etp-backend/src/main/clj/solita/etp/api/aineisto.clj
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
:middleware [[security/wrap-whoami-for-internal-aineisto-api]]
:responses {200 {:body nil}}
:handler (fn [{:keys [db whoami aws-s3-client]}]
(concurrent/run-background
#(aineisto-service/update-aineistot-in-s3!
db
whoami
aws-s3-client)
"Aineistot update failed")
(r/response {}))}}]]])
(r/response
(concurrent/run-background
#(aineisto-service/update-aineistot-in-s3!
db
whoami
aws-s3-client)
"Aineistot update failed")))}}]]])

0 comments on commit 6518c15

Please sign in to comment.