diff --git a/cmd/backend/articles.go b/cmd/backend/articles.go index 00e7861..ffee3af 100644 --- a/cmd/backend/articles.go +++ b/cmd/backend/articles.go @@ -125,10 +125,9 @@ func (db *DB) GetArticleByUUID(u uuid.UUID) (*Article, error) { article := new(Article) var created []byte - var uuidString string var err error - if err := row.Scan(&article.ID, &article.Title, &created, &article.BannerLink, &article.Summary, &article.Published, &article.CreatorID, &article.IssueID, &article.EditedID, &article.Clicks, &article.IsInIssue, &article.AutoGenerated, &uuidString); err != nil { + if err := row.Scan(&article.ID, &article.Title, &created, &article.BannerLink, &article.Summary, &article.Published, &article.CreatorID, &article.IssueID, &article.EditedID, &article.Clicks, &article.IsInIssue, &article.AutoGenerated); err != nil { return nil, fmt.Errorf("error scanning article row: %v", err) }