Skip to content

Commit

Permalink
chore: fix SQL for article update
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Sep 28, 2024
1 parent c0b0e85 commit 6d2de68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/db/postgres/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ func (pg *DB) UpdateArticleForUser(uid uint, form model.ArticleUpdateForm) (*mod
if form.Title != nil {
update["title"] = *form.Title
}
if form.Image != nil {
update["image"] = *form.Image
}
if form.HTML != nil {
update["html"] = *form.HTML
}
if form.Text != nil {
update["text"] = *form.Text
}
Expand Down

0 comments on commit 6d2de68

Please sign in to comment.