From 9471941e025bc268f29fe648236e59ce227b57b0 Mon Sep 17 00:00:00 2001 From: soxx Date: Sat, 22 Jun 2024 23:25:06 +0200 Subject: [PATCH] refactor(postgres): fixed any IDE errors Signed-off-by: soxx --- internal/postgres/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {