From 227e359e42ab7c85d4cc50b983486e9a62a062ac Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 22 Mar 2021 22:07:03 +0100 Subject: [PATCH] update upgrade api routes --- app/src/views/update/SystemUpdate.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/views/update/SystemUpdate.vue b/app/src/views/update/SystemUpdate.vue index 37c717ce..282e64a6 100644 --- a/app/src/views/update/SystemUpdate.vue +++ b/app/src/views/update/SystemUpdate.vue @@ -74,7 +74,7 @@ export default { return { queries: [ ['GET', 'migrations?pending'], - ['PUT', 'update'] + ['PUT', 'update/all'] ], // API data migrationsNotDone: undefined, @@ -95,10 +95,7 @@ export default { const confirmed = await this.$askConfirmation(confirmMsg) if (!confirmed) return - const uri = type === 'specific_app' - ? 'upgrade/apps?app=' + id - : 'upgrade?' + type - + const uri = id !== null ? `apps/${id}/upgrade` : 'upgrade/' + type api.put(uri).then(() => { this.$router.push({ name: 'tool-logs' }) })