mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #372 from YunoHost/fix-migrations
[fix] Migrations api path
This commit is contained in:
commit
3b161e83a6
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue