fix: skip local users while updating
This commit is contained in:
parent
5d58ef40a9
commit
0b21dd47e6
1 changed files with 1 additions and 0 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue