From 2a31aca37a82b82ce0fdab4b58f5d588030e8ddd Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 5 Dec 2024 13:37:20 +0000 Subject: [PATCH] Type fixes. --- packages/server/src/middleware/appMigrations.ts | 2 +- packages/server/src/middleware/cleanup.ts | 2 +- packages/server/src/middleware/currentapp.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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