almost prod product

This commit is contained in:
Romulus21
2024-11-02 16:44:02 +01:00
parent 6b32f3ee05
commit bd48522b66
11 changed files with 31 additions and 22 deletions

View File

@@ -61,11 +61,12 @@ impl Value {
};
sqlx::query!(
"INSERT INTO donnees(service, capteur, type, donnee, date_donnee) VALUES (?, ?, ?, ?, NOW())",
"INSERT INTO donnees(service, capteur, type, donnee, date_donnee) VALUES (?, ?, ?, ?, ?)",
option.service,
option.device,
option.r_type,
value,
chrono::Local::now().naive_local(),
)
.execute(crate::database::get_db())
.await