Fix: app list as operator

This commit is contained in:
Noor 2025-03-24 12:10:06 +00:00
parent ef629dff88
commit beb56f5a9c
Signed by: noormohammedb
GPG Key ID: E424C39E19EFD7DF
2 changed files with 2 additions and 2 deletions

@ -1322,7 +1322,7 @@ impl BrainData {
pub fn find_app_contracts_by_operator(&self, wallet: &str) -> Vec<AppContract> { pub fn find_app_contracts_by_operator(&self, wallet: &str) -> Vec<AppContract> {
debug!("Searching contracts for operator {wallet}"); debug!("Searching contracts for operator {wallet}");
let nodes = match self.operators.get(wallet) { let nodes = match self.operators.get(wallet) {
Some(op) => op.vm_nodes.clone(), Some(op) => op.app_nodes.clone(),
None => return Vec::new(), None => return Vec::new(),
}; };
let contracts: Vec<AppContract> = self let contracts: Vec<AppContract> = self

@ -722,7 +722,7 @@ impl BrainAppDaemon for BrainAppDaemonMock {
Some(detee_shared::app_proto::daemon_message_app::Msg::AppNodeResources( Some(detee_shared::app_proto::daemon_message_app::Msg::AppNodeResources(
node_resource, node_resource,
)) => self.data.submit_app_node_resources(node_resource), )) => self.data.submit_app_node_resources(node_resource),
_ => { None => {
dbg!("None"); dbg!("None");
} }
}, },