Vote Submission Function
Goal
The goal is to create a function that takes the JSON object created by an ESP when sending vote information, parses all relevant information, and creates a query to store the data in the DB.
Arguments
{
"vote": "Yes/No/Pass",
"Voting title": "title of vote"
}
Returns
Function Name: submitVoteToDB
Vote Submission Function
Goal
The goal is to create a function that takes the JSON object created by an ESP when sending vote information, parses all relevant information, and creates a query to store the data in the DB.
Arguments
{ "vote": "Yes/No/Pass", "Voting title": "title of vote" }Returns
Function Name:
submitVoteToDB