fix: can't delete remote graph

This commit is contained in:
Tienson Qin
2024-03-26 14:49:40 +08:00
parent cf9131afa6
commit dd63079aa4
2 changed files with 6 additions and 8 deletions

View File

@@ -280,9 +280,8 @@
(defn get-user-type
[repo]
(when-let [uuid (ldb/get-graph-rtc-uuid (db/get-db repo))]
(-> (some #(when (= uuid (:GraphUUID %)) %) (:rtc/graphs @state/state))
:graph<->user-user-type)))
(-> (some #(when (= repo (:url %)) %) (:rtc/graphs @state/state))
:graph<->user-user-type))
(defn manager?
[repo]