Update db schema to persist polls and choices
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ submitBtn.onclick = function() {
|
||||
headers: {
|
||||
"Content-Type": "application/json", // Inform the server about the data format
|
||||
},
|
||||
body: JSON.stringify(choices), // Convert the data to JSON string
|
||||
body: JSON.stringify({ pollId: 1, username: submitName.value, choices: choices }), // Convert the data to JSON string
|
||||
})
|
||||
/*
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user