diff --git a/packages/apollo-collaboration-server/src/main.ts b/packages/apollo-collaboration-server/src/main.ts index c70c50d5..66ea3805 100644 --- a/packages/apollo-collaboration-server/src/main.ts +++ b/packages/apollo-collaboration-server/src/main.ts @@ -91,7 +91,6 @@ async function bootstrap() { }), ) - // await app.listen(PORT) const server = await app.listen(PORT) server.headersTimeout = 24 * 60 * 60 * 1000 // one day server.requestTimeout = 24 * 60 * 60 * 1000 // one day diff --git a/packages/apollo-collaboration-server/src/utils/FileStorageEngine.ts b/packages/apollo-collaboration-server/src/utils/FileStorageEngine.ts index daa5e73b..77a85b42 100644 --- a/packages/apollo-collaboration-server/src/utils/FileStorageEngine.ts +++ b/packages/apollo-collaboration-server/src/utils/FileStorageEngine.ts @@ -45,12 +45,9 @@ export class FileStorageEngine implements StorageEngine { return chunk }) - // eslint-disable-next-line @typescript-eslint/no-var-requires - const zlib = require('node:zlib') // Check md5 checksum of saved file const fileWriteStream = createWriteStream(tempFullFileName) - // const gz = createGzip({ level: zlib.constants.Z_BEST_SPEED }) // BEST_SPEED option must be used in order to process also FASTA files > 1 GB (in Node 18 onwards) - const gz = createGzip() // BEST_SPEED option must be used in order to process also FASTA files > 1 GB (in Node 18 onwards) + const gz = createGzip() await pipeline(file.stream, gz, fileWriteStream) this.logger.debug(`Compressed file: ${tempFullFileName}`) const fileChecksum = hash.digest('hex')