mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🔥 Remove not needed events
This commit is contained in:
parent
f525c6df5e
commit
eabec6be20
3 changed files with 7 additions and 9 deletions
|
@ -38,7 +38,7 @@
|
||||||
;; HELPERS
|
;; HELPERS
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defn- obfuscate-string
|
(defn obfuscate-string
|
||||||
[s]
|
[s]
|
||||||
(if (< (count s) 10)
|
(if (< (count s) 10)
|
||||||
(apply str (take (count s) (repeat "*")))
|
(apply str (take (count s) (repeat "*")))
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
(fn [{:keys [send? enabled?] :or {send? true enabled? false}}]
|
(fn [{:keys [send? enabled?] :or {send? true enabled? false}}]
|
||||||
(let [subs {:newsletter-updates (get-subscriptions-newsletter-updates pool)
|
(let [subs {:newsletter-updates (get-subscriptions-newsletter-updates pool)
|
||||||
:newsletter-news (get-subscriptions-newsletter-news pool)}
|
:newsletter-news (get-subscriptions-newsletter-news pool)}
|
||||||
|
|
||||||
enabled? (or enabled?
|
enabled? (or enabled?
|
||||||
(contains? cf/flags :telemetry)
|
(contains? cf/flags :telemetry)
|
||||||
(cf/get :telemetry-enabled))
|
(cf/get :telemetry-enabled))
|
||||||
|
@ -78,12 +79,11 @@
|
||||||
|
|
||||||
(defn- send!
|
(defn- send!
|
||||||
[cfg data]
|
[cfg data]
|
||||||
(let [response (http/req! cfg
|
(let [request {:method :post
|
||||||
{:method :post
|
|
||||||
:uri (cf/get :telemetry-uri)
|
:uri (cf/get :telemetry-uri)
|
||||||
:headers {"content-type" "application/json"}
|
:headers {"content-type" "application/json"}
|
||||||
:body (json/encode-str data)}
|
:body (json/encode-str data)}
|
||||||
{:sync? true})]
|
response (http/req! cfg request)]
|
||||||
(when (> (:status response) 206)
|
(when (> (:status response) 206)
|
||||||
(ex/raise :type :internal
|
(ex/raise :type :internal
|
||||||
:code :invalid-response
|
:code :invalid-response
|
||||||
|
|
|
@ -86,12 +86,10 @@
|
||||||
(derive :app.main.data.dashboard/delete-team-member ::generic-action)
|
(derive :app.main.data.dashboard/delete-team-member ::generic-action)
|
||||||
(derive :app.main.data.dashboard/duplicate-project ::generic-action)
|
(derive :app.main.data.dashboard/duplicate-project ::generic-action)
|
||||||
(derive :app.main.data.dashboard/create-file ::generic-action)
|
(derive :app.main.data.dashboard/create-file ::generic-action)
|
||||||
(derive :app.main.data.dashboard/file-created ::generic-action)
|
|
||||||
(derive :app.main.data.dashboard/invite-team-members ::generic-action)
|
(derive :app.main.data.dashboard/invite-team-members ::generic-action)
|
||||||
(derive :app.main.data.dashboard/leave-team ::generic-action)
|
(derive :app.main.data.dashboard/leave-team ::generic-action)
|
||||||
(derive :app.main.data.dashboard/move-files ::generic-action)
|
(derive :app.main.data.dashboard/move-files ::generic-action)
|
||||||
(derive :app.main.data.dashboard/move-project ::generic-action)
|
(derive :app.main.data.dashboard/move-project ::generic-action)
|
||||||
(derive :app.main.data.dashboard/project-created ::generic-action)
|
|
||||||
(derive :app.main.data.dashboard/rename-file ::generic-action)
|
(derive :app.main.data.dashboard/rename-file ::generic-action)
|
||||||
(derive :app.main.data.dashboard/set-file-shared ::generic-action)
|
(derive :app.main.data.dashboard/set-file-shared ::generic-action)
|
||||||
(derive :app.main.data.dashboard/update-team-member-role ::generic-action)
|
(derive :app.main.data.dashboard/update-team-member-role ::generic-action)
|
||||||
|
|
Loading…
Add table
Reference in a new issue