Implement overproduction notification handling in ProduceWorker: Add logic to check for existing notifications and update them if necessary, or create a new notification if none exist. Introduce SQL queries for finding and updating overproduction notifications to enhance database interactions.

This commit is contained in:
Torsten Schulz (local)
2026-01-28 15:06:48 +01:00
parent 710a2a62b2
commit 4b4d84b15c
8 changed files with 5170 additions and 2 deletions

18
YpDaemon/Cargo.toml Normal file
View File

@@ -0,0 +1,18 @@
[package]
name = "YpDaemon"
version = "0.1.0"
edition = "2024"
[dependencies]
rand = "0.8"
postgres = "0.19"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.48", features = ["rt-multi-thread", "macros", "net", "sync", "time"] }
tokio-tungstenite = "0.23"
futures-util = "0.3"
ctrlc = "3"
tokio-rustls = "0.25"
rustls-pemfile = "2"
libsystemd = "0.7"
chrono = "0.4"