Skip to content

Commit

Permalink
chore: rename downloadStartTime const
Browse files Browse the repository at this point in the history
  • Loading branch information
kathleenkhy committed Mar 14, 2024
1 parent 7a24154 commit 7cdbdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/modules/submission/submission.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export const downloadCleanFile = (cleanFileKey: string, versionId: string) => {
})
.createReadStream()

const timeDownloadStart = Date.now()
const downloadStartTime = Date.now()
logger.info({
message: 'File download from S3 has started',
meta: logMeta,
Expand All @@ -403,7 +403,7 @@ export const downloadCleanFile = (cleanFileKey: string, versionId: string) => {
const timeDownloadEnd = Date.now()
logger.info({
message: 'File download from S3 duration',
meta: { ...logMeta, time: timeDownloadEnd - timeDownloadStart },
meta: { ...logMeta, time: timeDownloadEnd - downloadStartTime },
})

resolve(buffer)
Expand Down

0 comments on commit 7cdbdc4

Please sign in to comment.