From e58bfaedcdd9d6d209f23a1919d4474aff035873 Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 3 Jun 2021 18:15:15 +0200 Subject: [PATCH] [fix] Migration route --- 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 638b0bf2..dbd496a0 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.post('migrations/run?accept_disclaimer', 'migrations.run').then(() => { + api.put('migrations/run?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.post('/migrations/run', { skip: '', targets: id }, 'migration.skip').then(() => { + api.put('/migrations/run', { skip: '', targets: id }, 'migration.skip').then(() => { this.$refs.view.fetchQueries() }) }