Rename ControllerUid to a more general EmgauwaUid (for macros)

This commit is contained in:
Tobias Reisinger 2024-04-28 02:29:34 +02:00
parent 07d3322c5a
commit 51aa0d3c99
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
11 changed files with 55 additions and 57 deletions
emgauwa-controller/src

View file

@ -3,7 +3,7 @@ use emgauwa_lib::db;
use emgauwa_lib::db::{DbController, DbJunctionRelaySchedule, DbRelay, DbSchedule};
use emgauwa_lib::errors::EmgauwaError;
use emgauwa_lib::models::{Controller, FromDbModel};
use emgauwa_lib::types::ControllerUid;
use emgauwa_lib::types::EmgauwaUid;
use emgauwa_lib::utils::{drop_privileges, init_logging};
use rppal_pfd::PiFaceDigital;
use sqlx::pool::PoolConnection;
@ -26,7 +26,7 @@ async fn create_this_controller(
) -> Result<DbController, EmgauwaError> {
DbController::create(
conn,
&ControllerUid::default(),
&EmgauwaUid::default(),
&settings.name,
settings.relays.len() as i64,
)