feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
324 changed files with 999 additions and 13036 deletions
Showing only changes of commit c7dddc818c - Show all commits

View File

@ -233,9 +233,9 @@
chunks.push(units.data.units.slice(i, i + chunkSize).map(u => u.id))
}
const promises = []
const url = `{{ $urls->api }}/proyecto/{{ $contract->project->id }}/unidades/estados`
const method = 'post'
chunks.forEach(chunk => {
const url = `{{ $urls->api }}/proyecto/{{ $contract->project->id }}/unidades/estados`
const method = 'post'
const body = new FormData()
chunk.forEach(id => body.append('unidad_ids[]', id))
promises.push(APIClient.fetch(url, {method, body}).then(response => response.json()).then(json => {