Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ot.confirm donations #14

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Ot.confirm donations #14

wants to merge 4 commits into from

Conversation

CerberusLatrans
Copy link

📝 Description
Adds the PATCH endpoint /api/donations/confirm/:id to replace the status of the donation with the given ID to "RECEIVED".
Returns in the body:
{
"generatedMaps": [],
"raw": [],
"affected": 1
}

Doesn't fail if the given id doesn't exist, but affected will be 0.

✔️ Verification
Called with postman PATCH http://localhost:3000/api/donations/confirm/6, verified changes in pgadmin local db.
Screenshot 2024-11-17 at 7 50 05 PM

Provide screenshots of any new components, styling changes, or pages.

🏕️ (Optional) Future Work / Notes
Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!

@CerberusLatrans
Copy link
Author

accidentally made from unmerged filter donations branch, so that should get merged first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant