From a7a18f0d3746d77db36bab16e83b1630ab0e872f Mon Sep 17 00:00:00 2001 From: Luc Date: Tue, 21 Nov 2023 23:18:43 +0000 Subject: [PATCH] Bump --- src/gateway/resolution.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gateway/resolution.rs b/src/gateway/resolution.rs index 399088d..8ab44b4 100644 --- a/src/gateway/resolution.rs +++ b/src/gateway/resolution.rs @@ -31,7 +31,7 @@ impl UnresolvedQuery<'_> { info!("Resolving text record: {:?}", hash); - let x = state.db.get_records(&hash, &["avatar"]).await; + let x = state.db.get_records(&hash, &[record]).await; info!("Resolving text recordz: {:?}", x); // state @@ -43,8 +43,9 @@ impl UnresolvedQuery<'_> { // info!("Resolving text record: {:?}", str); - // state.db.get_records(node, records) - vec![Token::String("Hello".to_string())] + let value = x.get(record).to_owned().unwrap().clone().unwrap(); + + vec![Token::String(value)] } _ => Vec::new(), };