Skip to content

Commit

Permalink
programming in bed is a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Nov 20, 2024
1 parent ed52a72 commit 9fe25fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/middleware/file-upload.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class FileUploadInterceptor implements NestInterceptor {
}

const hash = createHash('sha1');
file.stream.on('data', (chunk) => hash.update(chunk));
this.defaultStorage._handleFile(request, file, (error, info) => {
if (error) {
hash.destroy();
Expand Down

0 comments on commit 9fe25fa

Please sign in to comment.