TryGhost/Ghost

View on GitHub
ghost/admin/app/services/migrate.js

Summary

Maintainability
A
1 hr
Test Coverage

Function apiToken has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async apiToken() {
        // TODO: Getting the token can be improved
        const ghostIntegrationsUrl = this.ghostPaths.url.api('integrations') + '?include=api_keys';
        return this.ajax.request(ghostIntegrationsUrl).then(async (response) => {
            const ssmIntegration = response.integrations.find(r => r.slug === 'self-serve-migration');
Severity: Minor
Found in ghost/admin/app/services/migrate.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status