We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1b7bf commit 7bd6e93Copy full SHA for 7bd6e93
src/index.js
@@ -42,9 +42,8 @@ export function processRequest(request, { uploadDir } = {}) {
42
export function apolloUploadKoa(options) {
43
return async function(ctx, next) {
44
// Skip if there are no uploads
45
- if (ctx.request.is('multipart/form-data')) {
+ if (ctx.request.is('multipart/form-data'))
46
ctx.request.body = await processRequest(ctx.req, options)
47
- }
48
await next()
49
}
50
0 commit comments