Skip to content

Commit

Permalink
Set content null
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 26, 2024
1 parent f6b36c1 commit 9ffed36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Repository struct {
type Post struct {
Id int `json:"id"`
Title string `json:"title"`
Content string `json:"content,omitempty"`
Content null.String `json:"content,omitempty"`
Slug string `json:"slug"`
PublishedOn null.String `json:"published_on,omitempty"`
IsFeatured bool `json:"is_featured"`
Expand Down

0 comments on commit 9ffed36

Please sign in to comment.