Remove old logging
This commit is contained in:
parent
c3abd38aa8
commit
ec4190e330
|
@ -69,12 +69,10 @@ pub async fn add_cached_actor(actor: &ActorExt, pool: &SqlitePool) -> anyhow::Re
|
||||||
});
|
});
|
||||||
let pub_key_pem = &actor.ext_one.public_key.public_key_pem;
|
let pub_key_pem = &actor.ext_one.public_key.public_key_pem;
|
||||||
if fetch_cached_actor(id, pool).await.is_some() {
|
if fetch_cached_actor(id, pool).await.is_some() {
|
||||||
println!("IS SOME - UPDATING");
|
|
||||||
sqlx::query!("update actors set actor_object = ?2, display_name = ?3, inbox = ?4, shared_inbox = ?5, icon_url = ?6, public_key_pem = ?7 where id = ?1", id, actor_json, display_name, inbox, shared_inbox, icon, pub_key_pem)
|
sqlx::query!("update actors set actor_object = ?2, display_name = ?3, inbox = ?4, shared_inbox = ?5, icon_url = ?6, public_key_pem = ?7 where id = ?1", id, actor_json, display_name, inbox, shared_inbox, icon, pub_key_pem)
|
||||||
.execute(pool)
|
.execute(pool)
|
||||||
.await?;
|
.await?;
|
||||||
} else {
|
} else {
|
||||||
println!("IS NONE - INSERTING");
|
|
||||||
sqlx::query!("insert into actors (id, actor_object, display_name, inbox, icon_url, public_key_pem) values (?1, ?2, ?3, ?4, ?5, ?6)", id, actor_json, display_name, inbox, icon, pub_key_pem)
|
sqlx::query!("insert into actors (id, actor_object, display_name, inbox, icon_url, public_key_pem) values (?1, ?2, ?3, ?4, ?5, ?6)", id, actor_json, display_name, inbox, icon, pub_key_pem)
|
||||||
.execute(pool)
|
.execute(pool)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Reference in New Issue