mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 21:06:38 +02:00
🔥 Remove unused code.
This commit is contained in:
parent
05563168c3
commit
6cb2f1663e
2 changed files with 1 additions and 10 deletions
|
@ -219,15 +219,6 @@
|
|||
:else
|
||||
(ex/raise :type :not-implemented)))
|
||||
|
||||
(defn decode-pgobject
|
||||
[^PGobject obj]
|
||||
(let [typ (.getType obj)
|
||||
val (.getValue obj)]
|
||||
(if (or (= typ "json")
|
||||
(= typ "jsonb"))
|
||||
(json/read-str val)
|
||||
val)))
|
||||
|
||||
(defn decode-json-pgobject
|
||||
[^PGobject o]
|
||||
(let [typ (.getType o)
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
[_task]
|
||||
(letfn [(decode-row [{:keys [data] :as row}]
|
||||
(cond-> row
|
||||
(db/pgobject? data) (assoc :data (db/decode-pgobject data))))
|
||||
(db/pgobject? data) (assoc :data (db/decode-json-pgobject data))))
|
||||
(retrieve-items [conn]
|
||||
(->> (db/exec! conn [sql:retrieve-peding-to-delete 10])
|
||||
(map decode-row)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue