From 5f0dc61cafc2949e6781663bd9401d281b4faf28 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 16 Jul 2026 13:06:43 +0200 Subject: [PATCH] :paperclip: Fix linter issues --- backend/src/app/graph/debug.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/app/graph/debug.clj b/backend/src/app/graph/debug.clj index e55d10cf09..2e75bf0ce9 100644 --- a/backend/src/app/graph/debug.clj +++ b/backend/src/app/graph/debug.clj @@ -77,7 +77,8 @@ (some-> (get @sessions (session-key profile-id)) (as-> current (when (= file-id (:file-id current)) - (let [result (locking (:lock current) + (let [lock (:lock current) + result (locking lock (graph.sync/apply-changes! conn (:index current) changes revn)) sync-at (ct/now)] @@ -191,7 +192,7 @@ :code :missing-query :hint "cypher query is required")) (if-let [{:keys [conn lock]} (get @sessions (session-key profile-id))] - (locking (or lock ::no-lock) + (locking lock (-> (ladybug/query-on-connection! conn statement) format-query-result)) (ex/raise :type :not-found @@ -238,7 +239,7 @@ reflects actual DB state, including drift." [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) {:keys [edges] edges-truncated? :truncated?} (export-edges conn)] {:file-id (str file-id)