code cleanup

This commit is contained in:
core 2023-07-29 18:12:36 -04:00
parent 0cca82546a
commit 3eefcad767
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 2 additions and 3 deletions

View File

@ -249,7 +249,7 @@ pub async fn dnclient(
}
};
let mut ks = host_in_ks;
let ks = host_in_ks;
ks.certs.push(KSCert {
id: ks.current_cert + 1,

View File

@ -77,7 +77,6 @@ use std::net::{Ipv4Addr, SocketAddrV4};
use std::str::FromStr;
use std::time::{SystemTime, UNIX_EPOCH};
use trifid_api_entities::entity::{host, host_config_override, host_static_address, network, organization, role};
use trifid_api_entities::entity::prelude::HostConfigOverride;
#[derive(Serialize, Deserialize)]
pub struct ListHostsRequestOpts {
@ -720,7 +719,7 @@ pub async fn create_hosts_request(
}
let matching_ip = match host::Entity::find()
.filter(host::Column::Ip.eq(&req.ip_address))
.filter(host::Column::Ip.eq(&req.ip_address.to_string()))
.all(&db.conn)
.await
{