fixed bug where daemon could not list contracts

This commit is contained in:
ghe0 2024-12-30 21:14:38 +02:00
parent 3b62e4d2bd
commit 3ab668c4b1
Signed by: ghe0
GPG Key ID: 451028EE56A0FBB4

@ -218,7 +218,7 @@ impl BrainDaemonService for BrainDaemonMock {
) -> Result<Response<Self::ListVMContractsStream>, Status> {
let req = req.into_inner();
info!("Node {} requested ListVMContractsStream", req.node_pubkey);
let contracts = self.data.find_contracts_by_admin_pubkey(&req.node_pubkey);
let contracts = self.data.find_contracts_by_node_pubkey(&req.node_pubkey);
let (tx, rx) = mpsc::channel(6);
tokio::spawn(async move {
for contract in contracts {