podcast var style
This commit is contained in:
@@ -156,7 +156,7 @@ func (p *Podcasts) AddNewEpisodes(podcast *db.Podcast, items []*gofeed.Item) err
|
|||||||
Where("podcast_id=?", podcast.ID).
|
Where("podcast_id=?", podcast.ID).
|
||||||
Order("publish_date DESC").
|
Order("publish_date DESC").
|
||||||
First(&podcastEpisode).Error
|
First(&podcastEpisode).Error
|
||||||
itemFound := true
|
var itemFound = true
|
||||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
itemFound = false
|
itemFound = false
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user