Remove old logging

This commit is contained in:
Shadowfacts 2023-01-06 00:18:25 -05:00
parent c3abd38aa8
commit ec4190e330
1 changed files with 0 additions and 2 deletions

View File

@ -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;
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)
.execute(pool)
.await?;
} 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)
.execute(pool)
.await?;