parent
7f788fb940
commit
3fd1232b7e
1 changed files with 2 additions and 2 deletions
|
|
@ -35,14 +35,14 @@ class ArticleApiIndexService
|
|||
includes(:user).
|
||||
order("published_at DESC").
|
||||
page(page).
|
||||
per(30)
|
||||
per(num)
|
||||
elsif organization = Organization.find_by_slug(username)
|
||||
organization.articles.
|
||||
where(published: true).
|
||||
includes(:user).
|
||||
order("published_at DESC").
|
||||
page(page).
|
||||
per(30)
|
||||
per(num)
|
||||
else
|
||||
not_found
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue