Ajout des points pour les limites
This commit is contained in:
parent
23f15fcf75
commit
acfebdaf0f
@ -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
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user