updated the rss source to use the new entity ref

This commit is contained in:
James Tombleson 2024-04-26 16:05:38 -07:00
parent 0948ef9fa2
commit 44b7d24e07
2 changed files with 3 additions and 3 deletions

View File

@ -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,
}

View File

@ -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",