From 561a997f4c311b7a5478182367dedeab62ed163b Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 7 Apr 2024 14:04:41 +0300 Subject: [PATCH] update sqlc gen --- repository/statistics/statistics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/statistics/statistics.go b/repository/statistics/statistics.go index ba2a1bb..4ecda3f 100644 --- a/repository/statistics/statistics.go +++ b/repository/statistics/statistics.go @@ -147,7 +147,7 @@ func (r *StatisticsRepository) GetQuestionsStatistics(ctx context.Context, req D if resp.Questions[questionTitle] == nil { resp.Questions[questionTitle] = make(map[string]float64) } - resp.Questions[questionTitle][row.AnswerContent.String] = row.QuestionsPercentage + resp.Questions[questionTitle][row.AnswerContent] = row.QuestionsPercentage } return resp, nil