Feat/controllers - refactor entire backend and new admin interface #75

Merged
KevinMidboe merged 117 commits from feat/controllers into master 2021-02-19 00:19:52 +00:00
Showing only changes of commit 1e6ec3d4c8 - Show all commits

View File

@@ -34,7 +34,7 @@ const addAttendee = (req, res) => {
});
}
if (typeof attendee["name"] !== "string" && typeof attendee["phoneNumber"] !== "number") {
if (typeof attendee["name"] !== "string" || typeof attendee["phoneNumber"] !== "number") {
return res.status(400).send({
message: "Incorrect or missing attendee keys 'name' or 'phoneNumber'.",
success: false