Skip to content

Commit

Permalink
logs check values
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooseriuz committed Jan 26, 2024
1 parent 05745f6 commit f763061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/consumer/amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const consumer = Consumer.create({
const { fileLocalPath, streamId, uploadId } = parseUploadFromFileName(file.key)
try {
const fileExtension = file.key.split('.').pop().toLowerCase()
console.log(fileExtension)

Check failure on line 21 in services/consumer/amazon.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
console.log(file.key)

Check failure on line 22 in services/consumer/amazon.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
console.log(file.size)

Check failure on line 23 in services/consumer/amazon.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
console.log(file.size > flacLimitSize)

Check failure on line 24 in services/consumer/amazon.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
if (fileExtension === 'flac' && file.size > flacLimitSize) {
db.updateUploadStatus(uploadId, db.status.FAILED, `This flac file size is exceeding our limit (${flacLimitSize / 1_000_000}MB)`)
} else if (fileExtension === 'wav' && file.size > wavLimitSize) {
Expand Down

0 comments on commit f763061

Please sign in to comment.