mirror of
https://github.com/penpot/penpot.git
synced 2025-05-16 03:26:37 +02:00
Merge remote-tracking branch 'origin/main' into develop
This commit is contained in:
commit
6e1e3772b9
5 changed files with 14 additions and 11 deletions
|
@ -147,7 +147,7 @@
|
|||
(mcnt :inc)
|
||||
(if (ex/exception? result)
|
||||
(log/error result "updater: unexpected error on update sessions")
|
||||
(log/tracef "updater: updated %s sessions (reason: %s)." result (name reason)))
|
||||
(log/debugf "updater: updated %s sessions (reason: %s)." result (name reason)))
|
||||
(recur))))))
|
||||
|
||||
(defn- timeout-chan
|
||||
|
|
|
@ -13,10 +13,8 @@
|
|||
[app.common.spec :as us]
|
||||
[app.common.uuid :as uuid]
|
||||
[app.db :as db]
|
||||
[app.db.sql :as sql]
|
||||
[app.util.services :as sv]
|
||||
[clojure.spec.alpha :as s]
|
||||
[cuerdas.core :as str]))
|
||||
[clojure.spec.alpha :as s]))
|
||||
|
||||
;; --- Helpers & Specs
|
||||
|
||||
|
@ -97,12 +95,16 @@
|
|||
|
||||
profile))
|
||||
|
||||
(def sql:retrieve-profile-by-email
|
||||
"select p.* from profile as p
|
||||
where p.email = lower(?)
|
||||
and p.deleted_at is null")
|
||||
|
||||
(defn retrieve-profile-data-by-email
|
||||
[conn email]
|
||||
(let [sql (sql/select :profile {:email (str/lower email)})
|
||||
data (db/exec-one! conn sql)]
|
||||
(when (and data (nil? (:deleted-at data)))
|
||||
(decode-profile-row data))))
|
||||
(let [sql [sql:retrieve-profile-by-email email]]
|
||||
(some-> (db/exec-one! conn sql)
|
||||
(decode-profile-row))))
|
||||
|
||||
;; --- Attrs Helpers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue