fix(doc): fix doc
This commit is contained in:
@@ -367,10 +367,11 @@ impl TenantService {
|
||||
if enabled_apps.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
let rows: Vec<String> = sqlx::query_scalar("SELECT id FROM apps WHERE id = ANY($1)")
|
||||
.bind(enabled_apps)
|
||||
.fetch_all(&self.pool)
|
||||
.await?;
|
||||
let rows: Vec<String> =
|
||||
sqlx::query_scalar("SELECT id FROM apps WHERE id = ANY($1) AND status = 'active'")
|
||||
.bind(enabled_apps)
|
||||
.fetch_all(&self.pool)
|
||||
.await?;
|
||||
let found: HashSet<String> = rows.into_iter().collect();
|
||||
for app in enabled_apps {
|
||||
if !found.contains(app) {
|
||||
|
||||
Reference in New Issue
Block a user