Move request models

This commit is contained in:
Tobias Reisinger 2023-12-05 01:51:06 +01:00
parent b3228ea6b5
commit 2a82cf79c4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 48 additions and 32 deletions
emgauwa-controller/src

View file

@ -1,6 +1,6 @@
use emgauwa_lib::constants::WEBSOCKET_RETRY_TIMEOUT;
use emgauwa_lib::db::{DbController, DbJunctionRelaySchedule, DbRelay, DbSchedule};
use emgauwa_lib::errors::{DatabaseError, EmgauwaError};
use emgauwa_lib::errors::EmgauwaError;
use emgauwa_lib::models::{Controller, FromDbModel};
use emgauwa_lib::types::{ControllerUid, ControllerWsAction};
use emgauwa_lib::{db, utils};
@ -101,7 +101,7 @@ async fn main() -> Result<(), std::io::Error> {
.map_err(EmgauwaError::from)?
.pop()
{
None => futures::executor::block_on(create_this_controller(&mut conn, &settings)),
None => futures::executor::block_on(create_this_controller(&mut conn, &settings))?,
Some(c) => c,
};