1
0
Fork 0
forked from alemi/upub

fix: skip local users while updating

This commit is contained in:
əlemi 2024-05-02 03:03:43 +02:00
parent 5d58ef40a9
commit 0b21dd47e6
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -16,6 +16,7 @@ pub async fn update_users(db: sea_orm::DatabaseConnection, domain: String, days:
while let Some(user) = stream.try_next().await? { while let Some(user) = stream.try_next().await? {
if ctx.is_local(&user.id) { continue }
match ctx.pull_user(&user.id).await { match ctx.pull_user(&user.id).await {
Err(e) => tracing::warn!("could not update user {}: {e}", user.id), Err(e) => tracing::warn!("could not update user {}: {e}", user.id),
Ok(u) => { Ok(u) => {