ghost/admin/app/services/migrate.js
Function apiToken
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');