@shahryarjb: Sorry, but I don’t know few things:
- What’s value of
category_aliasvariable -"jsjsjs"? - What’s value of
group_aclvariable - root list from gist ? fetch_posts_by_category_aliasfunction body
If I assumed correctly (about your variables) then:
def load_posts_by_category_alias(category_alias, group_acl) do
group_acl
|> Enum.find(& &1.seo_alias_link == category_alias)
|> Map.fetch!(:cms_post)
|> Enum.map(& &1.title)
end


















