manque statut defi

This commit is contained in:
2024-12-17 19:19:08 +01:00
parent 1a1e9ca5d4
commit 1b12f3f732
7330 changed files with 1540 additions and 153 deletions

View File

@@ -346,11 +346,13 @@ const positionUpdateInterval = 1000 * 5; // 5 secondes (à récupérer dynamique
async function updateServerPosition(latitude, longitude) {
const now = new Date().toISOString(); // Format ISO 8601 pour last_update
const username = 'baptiste'; // Spécifiez le nom de l'utilisateur pour Julien
try {
const response = await fetch('/update-position', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
username: username, // Inclure le champ username
latitude: latitude,
longitude: longitude,
last_update: now // Inclure le champ last_update