Fixing some missing functions.

This commit is contained in:
mike12345567 2023-07-27 18:53:58 +01:00
parent 7d978e0dec
commit c8712eda00
2 changed files with 1 additions and 9 deletions

View File

@ -122,14 +122,6 @@ router
buildAdminInitValidation(),
controller.adminUser
)
.post(
"/api/global/users/:userId/app/:appId/builder",
controller.addAppBuilder
)
.delete(
"/api/global/users/:userId/app/:appId/builder",
controller.removeAppBuilder
)
.get("/api/global/users/tenant/:id", controller.tenantUserLookup)
// global endpoint but needs to come at end (blocks other endpoints otherwise)
.get("/api/global/users/:id", auth.builderOrAdmin, controller.find)

View File

@ -10,7 +10,7 @@ import { platform } from "@budibase/backend-core"
* Re-sync the global-db users to the global-info db users
*/
export const run = async (globalDb: any) => {
const users = (await usersSdk.allUsers()) as User[]
const users = (await usersSdk.db.allUsers()) as User[]
const promises = []
for (let user of users) {
promises.push(