Feature: Mark guests as invited #60
| @ -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)); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user