Skip to content

Commit

Permalink
Merge branch 'master' of github.com:budibase/budibase into test-oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Aug 5, 2024
2 parents 7fe0e31 + f07ebc1 commit 6c79f34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/worker/src/sdk/tenants/tenants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ async function removeTenantUsers(tenantId: string) {
try {
const allUsers = await getTenantUsers(tenantId)
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
let keys = allUsers.rows.map((row: any) => row.id)
keys = keys.concat(allEmails)
keys = keys.concat(allEmails).concat(allSsoIds)

const platformDb = platform.getPlatformDB()

Expand Down

0 comments on commit 6c79f34

Please sign in to comment.