mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +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)]
|
#[allow(dead_code)]
|
||||||
pub async fn upsert_last_suggested_kind3(
|
pub async fn upsert_last_suggested_kind3(
|
||||||
person: PublicKeyHex,
|
person: String,
|
||||||
relay: String,
|
relay: String,
|
||||||
last_suggested_kind3: u64,
|
last_suggested_kind3: u64,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
@ -208,7 +208,7 @@ impl DbPersonRelay {
|
|||||||
|
|
||||||
let mut stmt = db.prepare(sql)?;
|
let mut stmt = db.prepare(sql)?;
|
||||||
stmt.execute((
|
stmt.execute((
|
||||||
&person.0,
|
&person,
|
||||||
&relay,
|
&relay,
|
||||||
&last_suggested_kind3,
|
&last_suggested_kind3,
|
||||||
&last_suggested_kind3,
|
&last_suggested_kind3,
|
||||||
|
@ -228,7 +228,7 @@ pub async fn process_new_event(
|
|||||||
let mut url = url.to_owned();
|
let mut url = url.to_owned();
|
||||||
if url.is_valid_relay_url() {
|
if url.is_valid_relay_url() {
|
||||||
url.trim();
|
url.trim();
|
||||||
DbPersonRelay::upsert_last_suggested_bytag(
|
DbPersonRelay::upsert_last_suggested_kind3(
|
||||||
pubkey.0.to_owned(),
|
pubkey.0.to_owned(),
|
||||||
url.inner().to_owned(),
|
url.inner().to_owned(),
|
||||||
now.0 as u64,
|
now.0 as u64,
|
||||||
|
Loading…
Reference in New Issue
Block a user