Merge pull request #372 from YunoHost/fix-migrations

[fix] Migrations api path
This commit is contained in:
Alexandre Aubin 2021-06-11 20:24:58 +02:00 committed by GitHub
commit 3b161e83a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ export default {
}
// Check that every migration's disclaimer has been checked.
if (Object.values(this.checked).every(value => value === true)) {
api.put('migrations/run?accept_disclaimer', {}, 'migrations.run').then(() => {
api.put('migrations?accept_disclaimer', {}, 'migrations.run').then(() => {
this.$refs.view.fetchQueries()
})
}
@ -130,7 +130,7 @@ export default {
async skipMigration (id) {
const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip'))
if (!confirmed) return
api.put('/migrations/run', { skip: '', targets: id }, 'migration.skip').then(() => {
api.put('/migrations/' + id, { skip: '', targets: id }, 'migration.skip').then(() => {
this.$refs.view.fetchQueries()
})
}