Minor comment tidy.

This commit is contained in:
Jayden Seric 2020-07-23 00:11:28 +10:00
parent 95675babc3
commit ead715ea92

View File

@ -47,7 +47,7 @@ const storeUpload = async (upload) => {
}); });
}); });
// In node <= 13, errors are not automatically propagated between piped // In Node.js <= v13, errors are not automatically propagated between piped
// streams. If there is an error receiving the upload, destroy the write // streams. If there is an error receiving the upload, destroy the write
// stream with the corresponding error. // stream with the corresponding error.
stream.on('error', (error) => writeStream.destroy(error)); stream.on('error', (error) => writeStream.destroy(error));
@ -67,7 +67,7 @@ const server = new ApolloServer({
uploads: { uploads: {
// Limits here should be stricter than config for surrounding // Limits here should be stricter than config for surrounding
// infrastructure such as Nginx so errors can be handled elegantly by // infrastructure such as Nginx so errors can be handled elegantly by
// graphql-upload: // `graphql-upload`:
// https://github.com/jaydenseric/graphql-upload#type-processrequestoptions // https://github.com/jaydenseric/graphql-upload#type-processrequestoptions
maxFileSize: 10000000, // 10 MB maxFileSize: 10000000, // 10 MB
maxFiles: 20, maxFiles: 20,