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

added /profile/addpoints and tests #131

Merged
merged 2 commits into from
Dec 7, 2023
Merged

added /profile/addpoints and tests #131

merged 2 commits into from
Dec 7, 2023

Conversation

aletya
Copy link
Contributor

@aletya aletya commented Dec 3, 2023

Added GET /profile/addpoints & tests for it.
takes a body of the following format
{
"userId": abcccccc,
"points": 10,
}
where userId is the specified user to add points to, and points is the number of points to add.
This endpoint can only be accessed by Staff/Admin, and can be used internally within the scanning qr code endpoint to add points whenever an attendee scans an event qr code.

Copy link
Contributor

@AydanPirani AydanPirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few small changes, but otw lgtm!

src/services/profile/profile-router.test.ts Outdated Show resolved Hide resolved
src/services/profile/profile-router.test.ts Outdated Show resolved Hide resolved
src/services/profile/profile-router.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@AydanPirani AydanPirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! feel free to merge

@aletya aletya merged commit c7bc992 into main Dec 7, 2023
5 checks passed
@aletya aletya deleted the dev/alex/award-points branch December 7, 2023 02:48
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.

2 participants