Commit 434b26a881b6edac9d97dc121c52261c5f0ef78f

Thomas de Grivel 2022-02-19T19:42:25

fix orgs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/kmxgit/slug_manager.ex b/lib/kmxgit/slug_manager.ex
index 160b71e..822701a 100644
--- a/lib/kmxgit/slug_manager.ex
+++ b/lib/kmxgit/slug_manager.ex
@@ -26,7 +26,8 @@ defmodule Kmxgit.SlugManager do
     Repo.one from s in Slug,
       where: fragment("lower(?)", s.slug) == ^String.downcase(slug),
       preload: [organisation: [:slug,
-                               owned_repositories: [organisation: :slug,
+                               owned_repositories: [members: :slug,
+                                                    organisation: :slug,
                                                     user: :slug],
                                users: :slug],
                 user: [:slug,