diff --git a/internal/postgres/tag.go b/internal/postgres/tag.go index 03131e7..124742e 100644 --- a/internal/postgres/tag.go +++ b/internal/postgres/tag.go @@ -57,7 +57,7 @@ func CreateTagNodeWitRelation(ctx context.Context, db *gorm.DB, PostID models.An return nil } -func GetTags(ctx context.Context, db *gorm.DB) ([]models.TagsWithFrequency, error) { +func GetTags(ctx context.Context, db *gorm.DB) ([]models.Tag, error) { var tags []models.Tag result := db.WithContext(ctx).Find(&tags) if result.Error != nil {