mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 11:43:43 +00:00
Fix last_suggested_kind3 not being updated
This commit is contained in:
parent
2fbf450368
commit
7474d8427c
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user