Fixed blog posts, added disclaimer text to be subtext

This commit is contained in:
2022-03-09 15:13:15 +00:00
parent 4763b636ef
commit e6675adda8
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ func (b *BlogRepo) GetBlogByUrl(url string) (*models.BlogPost, error) {
func (b *BlogRepo) GetAllBlogPosts() (*[]models.BlogPost, error) {
posts := new([]models.BlogPost)
err := b.DB.Table("blog_posts").Scan(posts).Error
err := b.DB.Table("blog_posts").Order("date desc").Scan(posts).Error
if err != nil {
return nil, errors.New("Could not load all posts from database")
}