Type fixes.

This commit is contained in:
mike12345567 2024-12-05 13:37:20 +00:00
parent ce08276250
commit 2a31aca37a
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { UserCtx } from "@budibase/types" import { UserCtx } from "@budibase/types"
import { checkMissingMigrations } from "../appMigrations" import { checkMissingMigrations } from "../appMigrations"
import env from "../environment" import env from "../environment"
import { Middleware, Next } from "koa" import type { Middleware, Next } from "koa"
const middleware = (async (ctx: UserCtx, next: Next) => { const middleware = (async (ctx: UserCtx, next: Next) => {
const { appId } = ctx const { appId } = ctx

View File

@ -1,7 +1,7 @@
import { Ctx } from "@budibase/types" import { Ctx } from "@budibase/types"
import { context } from "@budibase/backend-core" import { context } from "@budibase/backend-core"
import { tracer } from "dd-trace" import { tracer } from "dd-trace"
import { Middleware, Next } from "koa" import type { Middleware, Next } from "koa"
const middleware = (async (ctx: Ctx, next: Next) => { const middleware = (async (ctx: Ctx, next: Next) => {
const resp = await next() const resp = await next()

View File

@ -13,7 +13,7 @@ import env from "../environment"
import { isWebhookEndpoint, isBrowser, isApiKey } from "./utils" import { isWebhookEndpoint, isBrowser, isApiKey } from "./utils"
import { UserCtx, ContextUser } from "@budibase/types" import { UserCtx, ContextUser } from "@budibase/types"
import tracer from "dd-trace" import tracer from "dd-trace"
import { Middleware, Next } from "koa" import type { Middleware, Next } from "koa"
const middleware = (async (ctx: UserCtx, next: Next) => { const middleware = (async (ctx: UserCtx, next: Next) => {
// try to get the appID from the request // try to get the appID from the request