fix: unlink wrong graphs

This commit is contained in:
Tienson Qin
2022-11-07 23:44:53 +08:00
parent d40bfa2fbe
commit 5a66bf8fb9
4 changed files with 14 additions and 9 deletions

View File

@@ -116,9 +116,9 @@
(repo-handler/refresh-repos!)
(file-sync-restart!))
(defmethod handle :graph/unlinked [_]
(repo-handler/refresh-repos!)
(file-sync-restart!))
(defmethod handle :graph/unlinked [repo current-repo]
(when (= (:url repo) current-repo)
(file-sync-restart!)))
(defmethod handle :graph/refresh [_]
(repo-handler/refresh-repos!))