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

put events-router #69

Merged
merged 19 commits into from
Jul 7, 2024
Merged

put events-router #69

merged 19 commits into from
Jul 7, 2024

Conversation

riyap
Copy link
Contributor

@riyap riyap commented May 26, 2024

No description provided.

@riyap riyap force-pushed the dev/riyap/events branch from a19a62e to 9ea6a3e Compare June 4, 2024 08:30
src/app.ts Outdated Show resolved Hide resolved
src/database.ts Outdated Show resolved Hide resolved
src/services/attendees/attendee-schema.ts Outdated Show resolved Hide resolved
src/services/events/events-router.ts Outdated Show resolved Hide resolved
src/services/events/events-router.ts Outdated Show resolved Hide resolved
Comment on lines 103 to 120
eventsRouter.post("/check-in", async (req, res, next) => {
try {
const { eventId, userId } = req.body;
const result = await checkInUser(eventId, userId);
if (result.success) {
return res
.status(StatusCodes.OK)
.json({ message: "Check-in successful" });
} else {
return res
.status(StatusCodes.NOT_FOUND)
.json({ error: result.message });
}
} catch (error) {
next(error);
}
});

Copy link
Contributor

Choose a reason for hiding this comment

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

no need for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay i left this for testing, like the qr function; can get rid of later

src/services/events/events-utils.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.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.

a few last comments, then good :)

src/services/events/events-utils.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@divyack2 divyack2 left a comment

Choose a reason for hiding this comment

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

lgtm :))

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.

a fewwww more changes

src/services/events/events-router.ts Outdated Show resolved Hide resolved
src/services/events/events-router.ts Outdated Show resolved Hide resolved
src/services/events/events-router.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.ts Outdated Show resolved Hide resolved
src/services/events/events-utils.ts Show resolved Hide resolved
src/services/events/events-router.ts Outdated Show resolved Hide resolved
@AydanPirani AydanPirani merged commit ae48740 into main Jul 7, 2024
4 checks passed
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.

4 participants