From ebda02a777a82bd1c474b0dc3b3cf2fef23e29e3 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 22 Mar 2021 22:32:34 +0100 Subject: [PATCH] update migrations api routes --- 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 400b3627..83d77550 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: true }).then(() => { + api.put('migrations', { accept_disclaimer: true }).then(() => { this.$refs.view.fetchQueries() }) } @@ -131,7 +131,7 @@ export default { const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip')) if (!confirmed) return - api.post('/migrations/run', { skip: true, targets: id }).then(() => { + api.put('migrations/' + id, { skip: '' }).then(() => { this.$refs.view.fetchQueries() }) }