mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 18:18:24 -05:00
Merge remote-tracking branch 'origin/main' into staging
This commit is contained in:
commit
52d099c80e
1 changed files with 5 additions and 3 deletions
|
@ -727,13 +727,15 @@
|
||||||
deleted 0
|
deleted 0
|
||||||
total 0]
|
total 0]
|
||||||
(if-let [email (first emails)]
|
(if-let [email (first emails)]
|
||||||
(if-let [profile (db/get* system :profile
|
(if-let [profile (some-> (db/get* system :profile
|
||||||
{:email (str/lower email)}
|
{:email (str/lower email)}
|
||||||
{::db/remove-deleted false})]
|
{::db/remove-deleted false})
|
||||||
|
(profile/decode-row))]
|
||||||
(do
|
(do
|
||||||
(audit/insert! system
|
(audit/insert! system
|
||||||
{::audit/name "delete-profile"
|
{::audit/name "delete-profile"
|
||||||
::audit/type "action"
|
::audit/type "action"
|
||||||
|
::audit/profile-id (:id profile)
|
||||||
::audit/tracked-at deleted-at
|
::audit/tracked-at deleted-at
|
||||||
::audit/props (audit/profile->props profile)
|
::audit/props (audit/profile->props profile)
|
||||||
::audit/context {:triggered-by "srepl"
|
::audit/context {:triggered-by "srepl"
|
||||||
|
|
Loading…
Add table
Reference in a new issue