Browse Source

fix type annotation

Futa Arai 5 months ago
parent
commit
24f618732e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/server/service/g2g-transfer.ts

+ 1 - 1
apps/app/src/server/service/g2g-transfer.ts

@@ -427,7 +427,7 @@ export class G2GTransferPusherService implements Pusher {
     for await (const attachmentBatch of attachmentsCursor.pipe(batchStream)) {
     for await (const attachmentBatch of attachmentsCursor.pipe(batchStream)) {
       for await (const attachment of attachmentBatch) {
       for await (const attachment of attachmentBatch) {
         logger.debug(`processing attachment: ${attachment}`);
         logger.debug(`processing attachment: ${attachment}`);
-        let fileStream: Readable;
+        let fileStream: NodeJS.ReadableStream;
         try {
         try {
           // get read stream of each attachment
           // get read stream of each attachment
           fileStream = await fileUploadService.findDeliveryFile(attachment);
           fileStream = await fileUploadService.findDeliveryFile(attachment);