@budibase/worker 2.29.27 → 2.29.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.29.
|
|
4
|
+
"version": "2.29.29",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "Budibase",
|
|
38
38
|
"license": "GPL-3.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@budibase/backend-core": "2.29.
|
|
41
|
-
"@budibase/pro": "2.29.
|
|
42
|
-
"@budibase/string-templates": "2.29.
|
|
43
|
-
"@budibase/types": "2.29.
|
|
40
|
+
"@budibase/backend-core": "2.29.29",
|
|
41
|
+
"@budibase/pro": "2.29.29",
|
|
42
|
+
"@budibase/string-templates": "2.29.29",
|
|
43
|
+
"@budibase/types": "2.29.29",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.3",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "ad966dc61da2dbfb4fc11ddc2374c829311daa62"
|
|
111
111
|
}
|
|
@@ -48,10 +48,13 @@ async function removeTenantUsers(tenantId: string) {
|
|
|
48
48
|
try {
|
|
49
49
|
const allUsers = await getTenantUsers(tenantId)
|
|
50
50
|
const allEmails = allUsers.rows.map((row: any) => row.doc.email)
|
|
51
|
+
const allSsoIds = allUsers.rows
|
|
52
|
+
.map((row: any) => row.doc.ssoId)
|
|
53
|
+
.filter(id => !!id)
|
|
51
54
|
|
|
52
55
|
// get the id and email doc ids
|
|
53
56
|
let keys = allUsers.rows.map((row: any) => row.id)
|
|
54
|
-
keys = keys.concat(allEmails)
|
|
57
|
+
keys = keys.concat(allEmails).concat(allSsoIds)
|
|
55
58
|
|
|
56
59
|
const platformDb = platform.getPlatformDB()
|
|
57
60
|
|