Update packages/server/src/middleware/cleanup.ts

Co-authored-by: Adria Navarro <adria@budibase.com>
This commit is contained in:
Sam Rose 2024-02-02 14:57:05 +00:00 committed by GitHub
parent 21dfbe75ff
commit a3efab01bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import { Ctx } from "@budibase/types"
import { context } from "@budibase/backend-core" import { context } from "@budibase/backend-core"
export default async (ctx: Ctx, next: any) => { export default async (ctx: Ctx, next: any) => {
const resp = next() const resp = await next()
const current = context.getCurrentContext() const current = context.getCurrentContext()
if (current?.cleanup) { if (current?.cleanup) {