0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Send Ghost version to migrator tool (#19494)

This commit is contained in:
Paul Davis 2024-01-16 13:10:39 +00:00 committed by GitHub
parent f88fdfe363
commit 9d7dcc5aff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -63,7 +63,8 @@ export default class GhMigrateIframe extends Component {
apiUrl: this.migrate.apiUrl,
apiToken: theToken,
darkMode: this.feature.nightShift,
stripe: this.migrate.isStripeConnected
stripe: this.migrate.isStripeConnected,
ghostVersion: this.migrate.ghostVersion
}
}, new URL(this.migrate.getIframeURL()).origin);
}

View file

@ -1,4 +1,5 @@
import Service, {inject as service} from '@ember/service';
import config from 'ghost-admin/config/environment';
import {SignJWT} from 'jose';
import {tracked} from '@glimmer/tracking';
@ -66,6 +67,10 @@ export default class MigrateService extends Service {
return (this.settings.stripeConnectAccountId && this.settings.stripeConnectPublishableKey && this.settings.stripeConnectLivemode) ? true : false;
}
get ghostVersion() {
return config.APP.version;
}
constructor() {
super(...arguments);
}