add new rows in query
This commit is contained in:
parent
1ef01339cb
commit
a34c0e2e51
@ -45,6 +45,11 @@ func (r *AnswerRepository) CreateAnswers(ctx context.Context, answers []model.An
|
|||||||
Session: sql.NullString{String: session, Valid: true},
|
Session: sql.NullString{String: session, Valid: true},
|
||||||
Result: sql.NullBool{Bool: ans.Result, Valid: true},
|
Result: sql.NullBool{Bool: ans.Result, Valid: true},
|
||||||
Email: ans.Email,
|
Email: ans.Email,
|
||||||
|
Device: ans.Device,
|
||||||
|
DeviceType: ans.DeviceType,
|
||||||
|
Ip: ans.IP,
|
||||||
|
Browser: ans.Browser,
|
||||||
|
Os: ans.OS,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := r.queries.InsertAnswers(ctx, params)
|
err := r.queries.InsertAnswers(ctx, params)
|
||||||
|
Loading…
Reference in New Issue
Block a user