Fixing some missing functions.
This commit is contained in:
parent
7d978e0dec
commit
c8712eda00
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue