mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-12 14:29:06 -05:00
fix: correct SQL query for inserting pubkeys
This commit is contained in:
parent
6910b8d945
commit
b3c7852b19
|
@ -145,7 +145,7 @@ pub fn write_event(conn: &mut Connection, e: &Event) -> Result<usize> {
|
|||
if !ptags.is_empty() {
|
||||
for ptag in ptags.iter() {
|
||||
tx.execute(
|
||||
"INSERT OR IGNORE INTO event_ref (event_id, referenced_pubkey) VALUES (?1, ?2)",
|
||||
"INSERT OR IGNORE INTO pubkey_ref (event_id, referenced_pubkey) VALUES (?1, ?2)",
|
||||
params![ev_id, hex::decode(&ptag).ok()],
|
||||
)?;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user