Add can SMS question, fix error handling of client ID
This commit is contained in:
parent
84db38c985
commit
5527731e83
6 changed files with 68 additions and 45 deletions
|
|
@ -49,7 +49,10 @@ func (res *complianceR) ByID(ctx context.Context, r *http.Request, query QueryPa
|
|||
}
|
||||
func (res *complianceR) Create(ctx context.Context, r *http.Request, n publicreportComplianceForm) (*compliance, *nhttp.ErrorWithStatus) {
|
||||
user_agent := r.Header.Get("User-Agent")
|
||||
platform.EnsureClient(ctx, n.ClientID, user_agent)
|
||||
err := platform.EnsureClient(ctx, n.ClientID, user_agent)
|
||||
if err != nil {
|
||||
return nil, nhttp.NewError("Failed to ensure client: %w", err)
|
||||
}
|
||||
setter_report := models.PublicreportReportSetter{
|
||||
//AddressID: omitnull.From(latlng.Cell.String()),
|
||||
AddressGid: omit.From(""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue