update
This commit is contained in:
parent
cd18781525
commit
abfa9121ba
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user