1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00

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

View file

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