File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ defmodule Cadet.Course.Groups do
1111 @ doc """
1212 Returns a list of groups containing information on the each group's id, avenger name and group name
1313 """
14- @ type group_overview :: % { id: integer , avenger_name: String . t , name: String . t }
14+ @ type group_overview :: % { id: integer , avenger_name: String . t ( ) , name: String . t ( ) }
1515
1616 @ spec get_group_overviews ( % User { } ) :: [ group_overview ]
1717 def get_group_overviews ( _user = % User { role: role } ) do
@@ -20,6 +20,7 @@ defmodule Cadet.Course.Groups do
2020 Group
2121 |> Repo . all ( )
2222 |> Enum . map ( fn group_info -> get_group_info ( group_info ) end )
23+
2324 { :ok , overviews }
2425 else
2526 { :error , { :unauthorized , "Unauthorized" } }
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ defmodule CadetWeb.GroupController do
1818 |> put_status ( status )
1919 |> text ( message )
2020 end
21-
2221 end
2322
2423 swagger_path :index do
You can’t perform that action at this time.
0 commit comments