Merge branch 'master' of github.com:budibase/budibase into test-oracle

This commit is contained in:
Sam Rose 2024-08-05 14:08:26 +01:00
commit 6c79f3410c
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -48,10 +48,13 @@ async function removeTenantUsers(tenantId: string) {
try { try {
const allUsers = await getTenantUsers(tenantId) const allUsers = await getTenantUsers(tenantId)
const allEmails = allUsers.rows.map((row: any) => row.doc.email) const allEmails = allUsers.rows.map((row: any) => row.doc.email)
const allSsoIds = allUsers.rows
.map((row: any) => row.doc.ssoId)
.filter(id => !!id)
// get the id and email doc ids // get the id and email doc ids
let keys = allUsers.rows.map((row: any) => row.id) let keys = allUsers.rows.map((row: any) => row.id)
keys = keys.concat(allEmails) keys = keys.concat(allEmails).concat(allSsoIds)
const platformDb = platform.getPlatformDB() const platformDb = platform.getPlatformDB()