Rename request models
This commit is contained in:
parent
ccc30dcdaf
commit
e2f3d7b82a
5 changed files with 19 additions and 19 deletions
emgauwa-core/src/handlers/v1
|
@ -3,7 +3,7 @@ use actix_web::{get, put, web, HttpResponse};
|
|||
use emgauwa_lib::db::{DbController, DbJunctionRelaySchedule, DbRelay, DbTag};
|
||||
use emgauwa_lib::errors::{DatabaseError, EmgauwaError};
|
||||
use emgauwa_lib::models::{convert_db_list, FromDbModel, Relay};
|
||||
use emgauwa_lib::types::{ControllerUid, ControllerWsAction, RequestUpdateRelay};
|
||||
use emgauwa_lib::types::{ControllerUid, ControllerWsAction, RequestRelayUpdate};
|
||||
use emgauwa_lib::utils;
|
||||
use sqlx::{Pool, Sqlite};
|
||||
|
||||
|
@ -86,7 +86,7 @@ pub async fn update_for_controller(
|
|||
pool: web::Data<Pool<Sqlite>>,
|
||||
app_state: web::Data<Addr<AppState>>,
|
||||
path: web::Path<(String, i64)>,
|
||||
data: web::Json<RequestUpdateRelay>,
|
||||
data: web::Json<RequestRelayUpdate>,
|
||||
) -> Result<HttpResponse, EmgauwaError> {
|
||||
let mut pool_conn = pool.acquire().await?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue