Ajout des points pour les limites

This commit is contained in:
Mathis 2025-04-11 23:39:18 +02:00
parent 23f15fcf75
commit acfebdaf0f
4 changed files with 7 additions and 4 deletions

View File

@ -43,6 +43,7 @@ public class MainVerticle extends AbstractVerticle {
SetUser setUser = new SetUser(databaseService); SetUser setUser = new SetUser(databaseService);
setObjects.setUserHandler(setUser); setObjects.setUserHandler(setUser);
queryObjects.setUserHandler(setUser); queryObjects.setUserHandler(setUser);
setWeatherData.setUserHandler(setUser);
// Déclaration des routes // Déclaration des routes

View File

@ -42,6 +42,7 @@ public class SetWeatherData {
} }
String query = String.format("UPDATE range_data SET %s_min=?, %s_max=? WHERE station_id=?", type, type); String query = String.format("UPDATE range_data SET %s_min=?, %s_max=? WHERE station_id=?", type, type);
Integer idUser = body.getInteger("idUser"); Integer idUser = body.getInteger("idUser");
System.out.println("User : "+idUser);
databaseService.pool databaseService.pool
.preparedQuery( .preparedQuery(
query) query)

View File

@ -73,6 +73,7 @@ function ParticularMeteo({
axios axios
.post(`${API_BASE_URL}/modifRangeData`, { .post(`${API_BASE_URL}/modifRangeData`, {
id: identifiant, id: identifiant,
idUser:user.id,
min: parseFloat(rangeValue[0]), min: parseFloat(rangeValue[0]),
max: parseFloat(rangeValue[1]), max: parseFloat(rangeValue[1]),
type, type,

View File

@ -4,7 +4,7 @@ import axios from "axios";
import { API_BASE_URL } from "../config"; import { API_BASE_URL } from "../config";
function InfoObject({ object,defafficherModif }) { function UserInfosObject({ object,defafficherModif }) {
axios axios
.post(`${API_BASE_URL}/publicUser`, { .post(`${API_BASE_URL}/publicUser`, {
id: object.user, id: object.user,
@ -58,4 +58,4 @@ function InfoObject({ object,defafficherModif }) {
); );
} }
export default InfoObject; export default UserInfosObject;