🐛 Fix problem with promises in plugins

This commit is contained in:
alonso.torres 2024-11-04 17:12:45 +01:00
parent 59050a7bc6
commit 6c0dce580d
7 changed files with 23 additions and 30 deletions

View file

@ -20,8 +20,7 @@
[app.plugins.utils :as u]
[app.util.http :as http]
[app.util.object :as obj]
[beicon.v2.core :as rx]
[promesa.core :as p]))
[beicon.v2.core :as rx]))
(deftype FileProxy [$plugin $id]
Object
@ -128,7 +127,7 @@
file (u/proxy->file self)
features (features/get-team-enabled-features @st/state)
team-id (:current-team-id @st/state)]
(p/create
(js/Promise.
(fn [resolve reject]
(->> (uw/ask-many!
{:cmd export-cmd