1
0
Fork 0
mirror of synced 2024-09-09 14:11:30 +12:00

Fix for currentapp build issue.

This commit is contained in:
Michael Drury 2023-03-22 17:46:37 +00:00
parent 926ee18703
commit 669c4ebd5c

View file

@ -10,9 +10,9 @@ import { generateUserMetadataID, isDevAppID } from "../db/utils"
import { getCachedSelf } from "../utilities/global"
import env from "../environment"
import { isWebhookEndpoint } from "./utils"
import { BBContext } from "@budibase/types"
import { UserCtx } from "@budibase/types"
export default async (ctx: BBContext, next: any) => {
export default async (ctx: UserCtx, next: any) => {
// try to get the appID from the request
let requestAppId = await utils.getAppIdFromCtx(ctx)
// get app cookie if it exists