SendEvents synchronous

This commit is contained in:
Till Faelligen 2023-10-05 13:50:47 +02:00
parent 2259e71c0c
commit ac508b2c09
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -300,7 +300,7 @@ func updateProfile(
}, e }, e
} }
if err := api.SendEvents(ctx, rsAPI, api.KindNew, events, device.UserDomain(), domain, domain, nil, true); err != nil { if err := api.SendEvents(ctx, rsAPI, api.KindNew, events, device.UserDomain(), domain, domain, nil, false); err != nil {
util.GetLogger(ctx).WithError(err).Error("SendEvents failed") util.GetLogger(ctx).WithError(err).Error("SendEvents failed")
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusInternalServerError, Code: http.StatusInternalServerError,