Update db schema to persist polls and choices

This commit is contained in:
2025-01-01 12:25:04 +01:00
parent b587845823
commit bf33f88504
2 changed files with 33 additions and 13 deletions
+1 -1
View File
@@ -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 => {