Feature: Mark guests as invited #60

Merged
bustikiller merged 9 commits from guest-status-changes into main 2024-10-27 18:28:22 +00:00
Showing only changes of commit ae7b338771 - Show all commits

View File

@ -28,7 +28,7 @@ export default function guestsTable() {
function handleInviteGuest() { function handleInviteGuest() {
fetch("http://localhost:3001/guests/123.json", { method: 'PATCH', body: JSON.stringify({ guest: { status: 'Invited' } }) }) fetch("http://localhost:3001/guests/bulk-status-change.json", { method: 'POST', body: JSON.stringify({ status: "Invited", guest_ids: [] }) })
.then((response) => console.log(response.json())) .then((response) => console.log(response.json()))
.catch((error) => console.error(error)); .catch((error) => console.error(error));
} }