0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix demo user login issue.

This commit is contained in:
Andrey Antukh 2021-08-16 15:46:25 +02:00 committed by Andrés Moya
parent c8102f4bff
commit ac6c07b771

View file

@ -92,12 +92,16 @@
profile))
(def ^:private sql:profile-by-email
"select p.* from profile as p
where p.email = ?
and (p.deleted_at is null or
p.deleted_at > now())")
(defn retrieve-profile-data-by-email
[conn email]
(try
(db/get-by-params conn :profile {:email (str/lower email)
:deleted-at nil})
(catch Exception _e)))
(ex/ignoring
(db/exec-one! conn [sql:profile-by-email (str/lower email)])))
;; --- Attrs Helpers