Replace BBContext for Ctx
This commit is contained in:
parent
34cd26781b
commit
a5c145d9f6
|
@ -8,7 +8,7 @@ import {
|
|||
roles as rolesCore,
|
||||
db as dbCore,
|
||||
} from "@budibase/backend-core"
|
||||
import { BBContext, User } from "@budibase/types"
|
||||
import { BBContext, Ctx, User } from "@budibase/types"
|
||||
import sdk from "../../sdk"
|
||||
|
||||
export async function syncUser(ctx: BBContext) {
|
||||
|
@ -174,7 +174,7 @@ export async function getFlags(ctx: BBContext) {
|
|||
ctx.body = doc
|
||||
}
|
||||
|
||||
export async function removeUserFromApp(ctx: BBContext) {
|
||||
export async function removeUserFromApp(ctx: Ctx) {
|
||||
const { id: userId, prodAppId } = ctx.params
|
||||
|
||||
const devAppId = dbCore.getDevelopmentAppID(prodAppId)
|
||||
|
|
|
@ -41,7 +41,7 @@ export interface UserCtx<RequestBody = any, ResponseBody = any>
|
|||
}
|
||||
|
||||
/**
|
||||
* Deprecated: Use UserCtx / Ctx appropriately
|
||||
* @deprecated: Use UserCtx / Ctx appropriately
|
||||
* Authenticated context.
|
||||
*/
|
||||
export interface BBContext extends Ctx {
|
||||
|
|
Loading…
Reference in New Issue