Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiOnishi1129 committed Jun 21, 2024
1 parent dfbeaba commit 187505a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (u *Usecase) devCommunityArticleCrawler(ctx context.Context, feed *entity.F
ArticleAuthorName: &d.User.UserName,
ArticleTags: &d.Tags,
ArticleOGPImageURL: d.CoverImage,
IsEng: feed.R.Platform.IsEng,
})
if err != nil && res.IsRollback {
log.Printf("【error rollback transaction】: %s", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (u *Usecase) hashnodeArticleCrawler(ctx context.Context, feed *entity.Feed)
ArticleAuthorName: &d.Node.Author.Name,
ArticleTags: &articleTags,
ArticleOGPImageURL: d.Node.CoverImage.URL,
IsEng: feed.R.Platform.IsEng,
})
if err != nil && res.IsRollback {
log.Printf("【error rollback transaction】: %s", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (u *Usecase) hatenaArticleCrawler(ctx context.Context, feed *entity.Feed) e
ArticleAuthorName: &r.AuthorName,
ArticleTags: &r.Tags,
ArticleOGPImageURL: r.ImageURL,
IsEng: feed.R.Platform.IsEng,
})
if err != nil && res.IsRollback {
log.Printf("【error rollback transaction】: %s", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (u *Usecase) qiitaArticleCrawler(ctx context.Context, feed *entity.Feed) er
ArticleAuthorName: &r.AuthorName,
ArticleTags: &r.Tags,
ArticleOGPImageURL: r.ImageURL,
IsEng: feed.R.Platform.IsEng,
})
if err != nil && res.IsRollback {
log.Printf("【error rollback transaction】: %s", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (u *Usecase) zennArticleCrawler(ctx context.Context, feed *entity.Feed) err
ArticleAuthorName: nil,
ArticleTags: nil,
ArticleOGPImageURL: ogpImageURL,
IsEng: feed.R.Platform.IsEng,
})
if err != nil && res.IsRollback {
log.Printf("【error rollback transaction】: %s", err)
Expand Down

0 comments on commit 187505a

Please sign in to comment.