Minor fix on app node fields
Remove offline_minutes from AppNodeWithReports and update query condition for active app node filter
This commit is contained in:
parent
dcacd7b6b0
commit
1023e2aae8
@ -231,7 +231,6 @@ pub struct AppNodeWithReports {
|
||||
pub avail_ports: u32,
|
||||
pub max_ports_per_app: u32,
|
||||
pub price: u64,
|
||||
pub offline_minutes: u64,
|
||||
pub reports: Vec<Report>,
|
||||
}
|
||||
|
||||
@ -273,7 +272,7 @@ impl AppNodeWithReports {
|
||||
filter_query += "limit 1";
|
||||
}
|
||||
|
||||
filter_query += ";";
|
||||
filter_query += " && connected_at > disconnected_at;";
|
||||
let mut query_resp = db.query(filter_query).await?;
|
||||
let app_nodes: Vec<Self> = query_resp.take(0)?;
|
||||
Ok(app_nodes)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user