fix wrong args for /migration/run

This commit is contained in:
axolotle 2021-04-11 14:40:14 +02:00
parent 40ef5b2d7e
commit 0acbbf8550

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.post('migrations/run', { accept_disclaimer: true }).then(() => { api.post('migrations/run?accept_disclaimer').then(() => {
this.$refs.view.fetchQueries() this.$refs.view.fetchQueries()
}) })
} }
@ -131,7 +131,7 @@ export default {
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.post('/migrations/run', { skip: true, targets: id }).then(() => { api.post('/migrations/run', { skip: '', targets: id }).then(() => {
this.$refs.view.fetchQueries() this.$refs.view.fetchQueries()
}) })
} }