Fix last_suggested_kind3 not being updated

This commit is contained in:
Mike Dilger 2023-01-20 08:25:29 +13:00
parent 2fbf450368
commit 7474d8427c
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,