diff --git a/packages/git-extractor/src/middleware/camelize.ts b/packages/git-extractor/src/middleware/camelize.ts index 7e2f01b2..d486f38c 100644 --- a/packages/git-extractor/src/middleware/camelize.ts +++ b/packages/git-extractor/src/middleware/camelize.ts @@ -3,7 +3,11 @@ import { camelizeKeys } from "humps"; const camelizeMiddleware = async (ctx: Context, next: () => Promise) => { if (ctx.request.body) { + const originalBody = ctx.request.body; ctx.request.body = camelizeKeys(ctx.request.body); + if (ctx.request.body.files) { + ctx.request.body.files = originalBody.files; + } } await next();