aws-community-dach / event-system-frontend-web

The Web Frontend repo for the Community Event System
Apache License 2.0
2 stars 0 forks source link

Updating registration ends in infinite spinning wheel #25

Open hoegertn opened 5 months ago

hoegertn commented 5 months ago

If you update your registration, using the link from the mail, it will succeed but the website keeps on loading the window endlessly.

EduardSchwarzkopf commented 4 months ago

Seems like the backend is running into issues, when it comes to returning the participant: image

  const updated = await Participant.update({
    eventId,
    participantId,
    email: participant.email,
    name: data.name,
    displayName: data.displayName,
    customData: JSON.stringify(data.customData)
  });
  console.log("###Update:", updated)

Now I'm wondering if it is still a good idea to return the Participant on update. After some searches, people are telling you should return the updated object. Not sure what would be the better approach, but since the frontend is not doing anything with the returned data, we can go back to simply give a 200 response.

hoegertn commented 4 months ago

Good catch. Will check this.