manque statut defi
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user