fix: continue in case of error for register events

This commit is contained in:
Lakhan Samani 2023-03-29 07:29:44 +05:30
parent 6604b6bbdd
commit c908ac94da

View File

@ -29,13 +29,13 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use
userBytes, err := json.Marshal(user.AsAPIUser())
if err != nil {
log.Debug("error marshalling user obj: ", err)
return err
continue
}
userMap := map[string]interface{}{}
err = json.Unmarshal(userBytes, &userMap)
if err != nil {
log.Debug("error un-marshalling user obj: ", err)
return err
continue
}
reqBody := map[string]interface{}{