Replace BBContext for Ctx

This commit is contained in:
Adria Navarro 2023-01-13 13:31:48 +00:00
parent 34cd26781b
commit a5c145d9f6
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import {
roles as rolesCore, roles as rolesCore,
db as dbCore, db as dbCore,
} from "@budibase/backend-core" } from "@budibase/backend-core"
import { BBContext, User } from "@budibase/types" import { BBContext, Ctx, User } from "@budibase/types"
import sdk from "../../sdk" import sdk from "../../sdk"
export async function syncUser(ctx: BBContext) { export async function syncUser(ctx: BBContext) {
@ -174,7 +174,7 @@ export async function getFlags(ctx: BBContext) {
ctx.body = doc ctx.body = doc
} }
export async function removeUserFromApp(ctx: BBContext) { export async function removeUserFromApp(ctx: Ctx) {
const { id: userId, prodAppId } = ctx.params const { id: userId, prodAppId } = ctx.params
const devAppId = dbCore.getDevelopmentAppID(prodAppId) const devAppId = dbCore.getDevelopmentAppID(prodAppId)

View File

@ -41,7 +41,7 @@ export interface UserCtx<RequestBody = any, ResponseBody = any>
} }
/** /**
* Deprecated: Use UserCtx / Ctx appropriately * @deprecated: Use UserCtx / Ctx appropriately
* Authenticated context. * Authenticated context.
*/ */
export interface BBContext extends Ctx { export interface BBContext extends Ctx {