mirror of
https://github.com/penpot/penpot.git
synced 2026-08-17 10:18:59 +00:00
📎 Fix linter issues
This commit is contained in:
parent
35813ae908
commit
5f0dc61caf
@ -77,7 +77,8 @@
|
|||||||
(some-> (get @sessions (session-key profile-id))
|
(some-> (get @sessions (session-key profile-id))
|
||||||
(as-> current
|
(as-> current
|
||||||
(when (= file-id (:file-id current))
|
(when (= file-id (:file-id current))
|
||||||
(let [result (locking (:lock current)
|
(let [lock (:lock current)
|
||||||
|
result (locking lock
|
||||||
(graph.sync/apply-changes!
|
(graph.sync/apply-changes!
|
||||||
conn (:index current) changes revn))
|
conn (:index current) changes revn))
|
||||||
sync-at (ct/now)]
|
sync-at (ct/now)]
|
||||||
@ -191,7 +192,7 @@
|
|||||||
:code :missing-query
|
:code :missing-query
|
||||||
:hint "cypher query is required"))
|
:hint "cypher query is required"))
|
||||||
(if-let [{:keys [conn lock]} (get @sessions (session-key profile-id))]
|
(if-let [{:keys [conn lock]} (get @sessions (session-key profile-id))]
|
||||||
(locking (or lock ::no-lock)
|
(locking lock
|
||||||
(-> (ladybug/query-on-connection! conn statement)
|
(-> (ladybug/query-on-connection! conn statement)
|
||||||
format-query-result))
|
format-query-result))
|
||||||
(ex/raise :type :not-found
|
(ex/raise :type :not-found
|
||||||
@ -238,7 +239,7 @@
|
|||||||
reflects actual DB state, including drift."
|
reflects actual DB state, including drift."
|
||||||
[profile-id]
|
[profile-id]
|
||||||
(when-let [{:keys [conn lock file-id index]} (get @sessions (session-key profile-id))]
|
(when-let [{:keys [conn lock file-id index]} (get @sessions (session-key profile-id))]
|
||||||
(locking (or lock ::no-lock)
|
(locking lock
|
||||||
(let [{:keys [nodes] nodes-truncated? :truncated?} (export-nodes conn)
|
(let [{:keys [nodes] nodes-truncated? :truncated?} (export-nodes conn)
|
||||||
{:keys [edges] edges-truncated? :truncated?} (export-edges conn)]
|
{:keys [edges] edges-truncated? :truncated?} (export-edges conn)]
|
||||||
{:file-id (str file-id)
|
{:file-id (str file-id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user