[fix] Migrations api path

This commit is contained in:
ljf (zamentur) 2021-06-08 13:26:53 +02:00 committed by GitHub
parent 276b1d8865
commit 061219d348
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. // Check that every migration's disclaimer has been checked.
if (Object.values(this.checked).every(value => value === true)) { 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() this.$refs.view.fetchQueries()
}) })
} }
@ -130,7 +130,7 @@ export default {
async skipMigration (id) { async skipMigration (id) {
const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip')) const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip'))
if (!confirmed) return 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() this.$refs.view.fetchQueries()
}) })
} }