diff --git a/packages/server/src/middleware/appMigrations.ts b/packages/server/src/middleware/appMigrations.ts index c8fcfa217e..2ebd522add 100644 --- a/packages/server/src/middleware/appMigrations.ts +++ b/packages/server/src/middleware/appMigrations.ts @@ -1,7 +1,7 @@ import { UserCtx } from "@budibase/types" import { checkMissingMigrations } from "../appMigrations" import env from "../environment" -import { Middleware, Next } from "koa" +import type { Middleware, Next } from "koa" const middleware = (async (ctx: UserCtx, next: Next) => { const { appId } = ctx diff --git a/packages/server/src/middleware/cleanup.ts b/packages/server/src/middleware/cleanup.ts index 7279c4cddc..443eacc52d 100644 --- a/packages/server/src/middleware/cleanup.ts +++ b/packages/server/src/middleware/cleanup.ts @@ -1,7 +1,7 @@ import { Ctx } from "@budibase/types" import { context } from "@budibase/backend-core" import { tracer } from "dd-trace" -import { Middleware, Next } from "koa" +import type { Middleware, Next } from "koa" const middleware = (async (ctx: Ctx, next: Next) => { const resp = await next() diff --git a/packages/server/src/middleware/currentapp.ts b/packages/server/src/middleware/currentapp.ts index 796098a4d2..866730297a 100644 --- a/packages/server/src/middleware/currentapp.ts +++ b/packages/server/src/middleware/currentapp.ts @@ -13,7 +13,7 @@ import env from "../environment" import { isWebhookEndpoint, isBrowser, isApiKey } from "./utils" import { UserCtx, ContextUser } from "@budibase/types" import tracer from "dd-trace" -import { Middleware, Next } from "koa" +import type { Middleware, Next } from "koa" const middleware = (async (ctx: UserCtx, next: Next) => { // try to get the appID from the request