1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Add a soft-deletion column on upstream OAuth 2.0 providers

This commit is contained in:
Quentin Gliech
2024-04-02 14:38:54 +02:00
parent 58fd6ab4c1
commit 4e3823fe4f
20 changed files with 369 additions and 40 deletions

View File

@@ -110,7 +110,7 @@ pub async fn config_sync(
.map(|p| p.id)
.collect::<HashSet<_>>();
let existing = repo.upstream_oauth_provider().all().await?;
let existing = repo.upstream_oauth_provider().all_enabled().await?;
let existing_ids = existing.iter().map(|p| p.id).collect::<HashSet<_>>();
let to_delete = existing.into_iter().filter(|p| !config_ids.contains(&p.id));
if prune {