Skip to content

Commit

Permalink
Ensure post news items receive correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Dec 10, 2024
1 parent 3b0af88 commit 94ef279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/changelog/schema/news/post_news_item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Changelog.PostNewsItem do

def insert(post, logger) do
%NewsItem{
type: :link,
type: :post,
object_id: Post.object_id(post),
url: PostView.url(post, :show),
headline: post.title,
Expand Down

0 comments on commit 94ef279

Please sign in to comment.