Skip to content

Commit

Permalink
[#74] Fixed elvis comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfacorro committed Oct 16, 2014
1 parent d5a6188 commit 3564363
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/elastic-blog/src/blog.erl
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ start() ->


%% @doc Paginates all authors, sorts by name.
-spec find_all_authors(non_neg_integer(), non_neg_integer()) -> [blog_author:author()].
-spec find_all_authors(non_neg_integer(), non_neg_integer()) ->
[blog_author:author()].
find_all_authors(Limit, Offset) ->
sumo:find_all(blog_author, name, Limit, Offset).

-spec find_authors_by_name(string(), non_neg_integer(), non_neg_integer()) -> [blog_author:author()].
-spec find_authors_by_name(string(), non_neg_integer(), non_neg_integer()) ->
[blog_author:author()].
find_authors_by_name(Name, Limit, Offset) ->
sumo:find_by(blog_author, [{name, Name}], Limit, Offset).

Expand Down
3 changes: 2 additions & 1 deletion examples/elastic-blog/src/blog_post.erl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ sumo_schema() ->
%% We don't have the extends module attribute in R16, so this was moved out from
%% the old blog_post_repo in the example, we should allocate some time to create
%% a proper parse transform for this.
% -spec total_posts(sumo:schema_name(), State ) -> {ok, {raw, non_neg_integer()}, State} | {ok, error, State}.
% -spec total_posts(sumo:schema_name(), State ) ->
% {ok, {raw, non_neg_integer()}, State} | {ok, error, State}.
% count(DocName, State) ->
% Sql = "SELECT COUNT(1) FROM `" ++ atom_to_list(DocName) ++ "`",
% Result = sumo_repo_mysql:execute(Sql, State),
Expand Down

0 comments on commit 3564363

Please sign in to comment.