update migrations api routes

This commit is contained in:
axolotle 2021-03-22 22:32:34 +01:00
parent 227e359e42
commit ebda02a777

View file

@ -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()
})
}