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);
|
||||
setObjects.setUserHandler(setUser);
|
||||
queryObjects.setUserHandler(setUser);
|
||||
setWeatherData.setUserHandler(setUser);
|
||||
|
||||
|
||||
// Déclaration des routes
|
||||
|
||||
@ -13,8 +13,8 @@ public class SetWeatherData {
|
||||
this.databaseService = ddbs;
|
||||
}
|
||||
public void setUserHandler(SetUser setUser) {
|
||||
this.setUser = setUser;
|
||||
}
|
||||
this.setUser = setUser;
|
||||
}
|
||||
public void setRangeData(RoutingContext context) {
|
||||
JsonObject body = context.body().asJsonObject();
|
||||
if (body == null) {
|
||||
@ -42,6 +42,7 @@ public class SetWeatherData {
|
||||
}
|
||||
String query = String.format("UPDATE range_data SET %s_min=?, %s_max=? WHERE station_id=?", type, type);
|
||||
Integer idUser = body.getInteger("idUser");
|
||||
System.out.println("User : "+idUser);
|
||||
databaseService.pool
|
||||
.preparedQuery(
|
||||
query)
|
||||
|
||||
@ -73,6 +73,7 @@ function ParticularMeteo({
|
||||
axios
|
||||
.post(`${API_BASE_URL}/modifRangeData`, {
|
||||
id: identifiant,
|
||||
idUser:user.id,
|
||||
min: parseFloat(rangeValue[0]),
|
||||
max: parseFloat(rangeValue[1]),
|
||||
type,
|
||||
|
||||
@ -4,7 +4,7 @@ import axios from "axios";
|
||||
import { API_BASE_URL } from "../config";
|
||||
|
||||
|
||||
function InfoObject({ object,defafficherModif }) {
|
||||
function UserInfosObject({ object,defafficherModif }) {
|
||||
axios
|
||||
.post(`${API_BASE_URL}/publicUser`, {
|
||||
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