diff --git a/src/Versions.svelte b/src/Versions.svelte index 5f9cb8e..0bf7ac1 100644 --- a/src/Versions.svelte +++ b/src/Versions.svelte @@ -13,7 +13,10 @@ let versions = [] let newVersion = '' let oldName = null - let envData = ['piloto', 'prod'] + let envData = [ + { env: 'pilot_version', value: 'Piloto' }, + { env: 'prod_version', value: 'Producao' } + ] let envChoice = '' async function list() { @@ -28,7 +31,7 @@ } async function deleteVersion(environment, version) { try { - await api.post('/remove/ip', { + await api.post('/remove/version', { app: nameApp, ip: event.detail.ip }) @@ -65,7 +68,7 @@