PalisadoesFoundation / talawa

Community Organization Management Software. Click on the link below to see our documentation.
https://docs.talawa.io/
GNU General Public License v3.0
306 stars 434 forks source link

Error in Event Registration due Faulty mutation #2467

Closed GlenDsza closed 2 months ago

GlenDsza commented 2 months ago

Describe the bug The registerForEvent mutation being used for register functionality was updated in Talawa API in https://github.com/PalisadoesFoundation/talawa-api/issues/1644 . Before update registerForEvent returned Event object, after update it returns EventAttendee object. Due to older implementation of registerForEvent the mutation fails.

To Reproduce Steps to reproduce the behavior:

  1. Login in a organiszation.
  2. Open Events Tab
  3. Open a specific event (where you've not already registered)
  4. Click on register.
  5. Error is displayed as No mutation occurs.

Expected behavior On click of register button, user should be registered for the event.

Actual behavior On click of register button, error is displayed due to failing mutation.

Screenshots

https://github.com/PalisadoesFoundation/talawa/assets/109027247/899b8344-0c4e-4d91-bd83-38995c77fe6f

Additional details Part (pre-requisite) for Event Parity project

Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359

GlenDsza commented 2 months ago

Would like to work on this issue