in event-driven-developers-tale/src/components/AddVacation.js [27:45]
async function addVacation() {
const newVacationRequest = {
description: description,
approvalStatus: "PENDING_VALIDATION",
category: `${category}`,
startDate: `${startDate}Z`,
endDate: `${endDate}Z`
}
await API.graphql({
query: submitVacationRequest,
variables: {
input: newVacationRequest
},
authMode: 'AMAZON_COGNITO_USER_POOLS'
})
emmiter.emit("showModal", false, "", "", null)
}