From 0b21dd47e64e2387b5c60dc774cae2f37abfeb39 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 2 May 2024 03:03:43 +0200 Subject: [PATCH] fix: skip local users while updating --- src/cli/update.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/update.rs b/src/cli/update.rs index 05afda65..7c6843c9 100644 --- a/src/cli/update.rs +++ b/src/cli/update.rs @@ -16,6 +16,7 @@ pub async fn update_users(db: sea_orm::DatabaseConnection, domain: String, days: while let Some(user) = stream.try_next().await? { + if ctx.is_local(&user.id) { continue } match ctx.pull_user(&user.id).await { Err(e) => tracing::warn!("could not update user {}: {e}", user.id), Ok(u) => {