Update packages/server/src/middleware/cleanup.ts
Co-authored-by: Adria Navarro <adria@budibase.com>
This commit is contained in:
parent
21dfbe75ff
commit
a3efab01bf
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue