diff --git a/resources/templates/admin.html b/resources/templates/admin.html index 72e258d..51c9d6b 100644 --- a/resources/templates/admin.html +++ b/resources/templates/admin.html @@ -59,8 +59,8 @@ "Content-Type": "application/json" }, body: JSON.stringify({ - year: year, - id: id, + year: parseInt(year), + id: parseInt(id), token: localStorage.getItem("SECRET-token") }) }).then(function(response) {