Commit 4a5f73b9a70fe96435f9bddffbcd85b55f9c9cc6

Thomas de Grivel 2022-02-19T18:22:17

preload members

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 982fd30..160b71e 100644
--- a/lib/kmxgit/slug_manager.ex
+++ b/lib/kmxgit/slug_manager.ex
@@ -31,7 +31,8 @@ defmodule Kmxgit.SlugManager do
                                users: :slug],
                 user: [:slug,
                        organisations: :slug,
-                       owned_repositories: [organisation: :slug,
+                       owned_repositories: [members: :slug,
+                                            organisation: :slug,
                                             user: :slug]]],
       limit: 1
   end