This commit is contained in:
Pavel 2024-09-19 11:42:49 +03:00
parent cd18781525
commit abfa9121ba
2 changed files with 3 additions and 0 deletions

@ -62,6 +62,7 @@ func (r *AnswerRepository) CreateAnswers(ctx context.Context, answers []model.An
Os: ans.OS,
Start: ans.Start,
Utm: utmJSON,
Version: ans.Version,
}
row, err := r.queries.InsertAnswers(ctx, params)
@ -81,6 +82,7 @@ func (r *AnswerRepository) CreateAnswers(ctx context.Context, answers []model.An
Browser: row.Browser,
IP: row.Ip,
Start: row.Start,
Version: row.Version,
}
if err != nil {

@ -49,6 +49,7 @@ func (r *WorkerAnswerRepository) GetAllAnswersByQuizID(ctx context.Context, sess
CreatedAt: row.CreatedAt.Time,
QuestionID: uint64(row.QuestionID),
AnswerID: uint64(row.ID),
Version: row.Version,
}
results = append(results, resultAnswer)