From 44b7d24e07ccfc36c150fefe300e042dea470798 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Fri, 26 Apr 2024 16:05:38 -0700 Subject: [PATCH] updated the rss source to use the new entity ref --- internal/services/input/rss.go | 4 ++-- internal/services/input/rss_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/services/input/rss.go b/internal/services/input/rss.go index 820a54e..a803267 100644 --- a/internal/services/input/rss.go +++ b/internal/services/input/rss.go @@ -10,10 +10,10 @@ import ( ) type rssClient struct { - SourceRecord domain.Sources + SourceRecord domain.SourceEntity } -func NewRssClient(sourceRecord domain.Sources) rssClient { +func NewRssClient(sourceRecord domain.SourceEntity) rssClient { client := rssClient{ SourceRecord: sourceRecord, } diff --git a/internal/services/input/rss_test.go b/internal/services/input/rss_test.go index 70da8b8..e27b510 100644 --- a/internal/services/input/rss_test.go +++ b/internal/services/input/rss_test.go @@ -7,7 +7,7 @@ import ( "git.jamestombleson.com/jtom38/newsbot-api/internal/services/input" ) -var rssRecord = domain.Sources{ +var rssRecord = domain.SourceEntity{ ID: 1, Name: "ArsTechnica", Url: "https://feeds.arstechnica.com/arstechnica/index",