#12 - update feeds

This commit is contained in:
2025-03-11 15:25:52 +02:00
parent a76915c7fc
commit f561eb4c34
10 changed files with 131 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ import (
)
const getFeedByUrl = `-- name: GetFeedByUrl :one
SELECT id, created_at, updated_at, name, url, user_id FROM feeds WHERE url = $1
SELECT id, created_at, updated_at, name, url, user_id, last_fetched_at FROM feeds WHERE url = $1
`
func (q *Queries) GetFeedByUrl(ctx context.Context, url string) (Feed, error) {
@@ -23,6 +23,7 @@ func (q *Queries) GetFeedByUrl(ctx context.Context, url string) (Feed, error) {
&i.Name,
&i.Url,
&i.UserID,
&i.LastFetchedAt,
)
return i, err
}