diff --git a/src/db/person_relay.rs b/src/db/person_relay.rs index b112de1d..33361555 100644 --- a/src/db/person_relay.rs +++ b/src/db/person_relay.rs @@ -194,7 +194,7 @@ impl DbPersonRelay { #[allow(dead_code)] pub async fn upsert_last_suggested_kind3( - person: PublicKeyHex, + person: String, relay: String, last_suggested_kind3: u64, ) -> Result<(), Error> { @@ -208,7 +208,7 @@ impl DbPersonRelay { let mut stmt = db.prepare(sql)?; stmt.execute(( - &person.0, + &person, &relay, &last_suggested_kind3, &last_suggested_kind3, diff --git a/src/process.rs b/src/process.rs index 242f1ad5..d401a1f5 100644 --- a/src/process.rs +++ b/src/process.rs @@ -228,7 +228,7 @@ pub async fn process_new_event( let mut url = url.to_owned(); if url.is_valid_relay_url() { url.trim(); - DbPersonRelay::upsert_last_suggested_bytag( + DbPersonRelay::upsert_last_suggested_kind3( pubkey.0.to_owned(), url.inner().to_owned(), now.0 as u64,