resource-watch/webshot

View on GitHub
app/src/services/s3.service.js

Summary

Maintainability
A
1 hr
Test Coverage
A
90%

Function uploadFileToS3 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static async uploadFileToS3(filePath, fileName) {
        if (!S3_ACCESS_KEY_ID || !S3_SECRET_ACCESS_KEY) {
            logger.error('[SERVICE] S3 access credentials missing');
            throw new MissingS3Credentials();
        }
Severity: Minor
Found in app/src/services/s3.service.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status