Commit 2418571de75cdc48a9c90c845a7e867f83a26bcb

Thomas de Grivel 2022-03-01T07:54:32

preload more

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 822701a..766e46e 100644
--- a/lib/kmxgit/slug_manager.ex
+++ b/lib/kmxgit/slug_manager.ex
@@ -27,7 +27,8 @@ defmodule Kmxgit.SlugManager do
       where: fragment("lower(?)", s.slug) == ^String.downcase(slug),
       preload: [organisation: [:slug,
                                owned_repositories: [members: :slug,
-                                                    organisation: :slug,
+                                                    organisation: [:slug,
+                                                                   :users],
                                                     user: :slug],
                                users: :slug],
                 user: [:slug,