From 187505acd2b4bc58e60181035af9448319a9bbdc Mon Sep 17 00:00:00 2001 From: YukiOnishi <58220747+YukiOnishi1129@users.noreply.github.com> Date: Sat, 22 Jun 2024 01:14:01 +0900 Subject: [PATCH] fix --- .../usecase/dev_community_article_crawler.go | 1 + .../trend-article-crawler/usecase/hashnode_article_crawler.go | 1 + .../cmd/trend-article-crawler/usecase/hatena_article_crawler.go | 1 + .../cmd/trend-article-crawler/usecase/qiita_article_crawler.go | 1 + .../cmd/trend-article-crawler/usecase/zenn_article_crawler.go | 1 + 5 files changed, 5 insertions(+) diff --git a/batch-service/cmd/trend-article-crawler/usecase/dev_community_article_crawler.go b/batch-service/cmd/trend-article-crawler/usecase/dev_community_article_crawler.go index d41b937d..928cb67f 100644 --- a/batch-service/cmd/trend-article-crawler/usecase/dev_community_article_crawler.go +++ b/batch-service/cmd/trend-article-crawler/usecase/dev_community_article_crawler.go @@ -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) diff --git a/batch-service/cmd/trend-article-crawler/usecase/hashnode_article_crawler.go b/batch-service/cmd/trend-article-crawler/usecase/hashnode_article_crawler.go index 061cbd4a..418c651e 100644 --- a/batch-service/cmd/trend-article-crawler/usecase/hashnode_article_crawler.go +++ b/batch-service/cmd/trend-article-crawler/usecase/hashnode_article_crawler.go @@ -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) diff --git a/batch-service/cmd/trend-article-crawler/usecase/hatena_article_crawler.go b/batch-service/cmd/trend-article-crawler/usecase/hatena_article_crawler.go index 2191065a..f870a225 100644 --- a/batch-service/cmd/trend-article-crawler/usecase/hatena_article_crawler.go +++ b/batch-service/cmd/trend-article-crawler/usecase/hatena_article_crawler.go @@ -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) diff --git a/batch-service/cmd/trend-article-crawler/usecase/qiita_article_crawler.go b/batch-service/cmd/trend-article-crawler/usecase/qiita_article_crawler.go index e64ef79e..0c09da65 100644 --- a/batch-service/cmd/trend-article-crawler/usecase/qiita_article_crawler.go +++ b/batch-service/cmd/trend-article-crawler/usecase/qiita_article_crawler.go @@ -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) diff --git a/batch-service/cmd/trend-article-crawler/usecase/zenn_article_crawler.go b/batch-service/cmd/trend-article-crawler/usecase/zenn_article_crawler.go index f80443f8..6dc8a800 100644 --- a/batch-service/cmd/trend-article-crawler/usecase/zenn_article_crawler.go +++ b/batch-service/cmd/trend-article-crawler/usecase/zenn_article_crawler.go @@ -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)