From 061219d348fb150787f0afec714bdcd3ae325288 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 8 Jun 2021 13:26:53 +0200 Subject: [PATCH] [fix] Migrations api path --- app/src/views/tool/ToolMigrations.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/views/tool/ToolMigrations.vue b/app/src/views/tool/ToolMigrations.vue index dbd496a0..dc93780e 100644 --- a/app/src/views/tool/ToolMigrations.vue +++ b/app/src/views/tool/ToolMigrations.vue @@ -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() }) }