This commit is contained in:
Andreani Jean
2023-06-06 16:19:13 +02:00
parent 210f2abd54
commit 98c471118b

View File

@@ -269,9 +269,9 @@ async function fetchCollection(): Promise<{
)
}
function patchCollectionItems(): void {
async function patchCollectionItems(): Promise<void> {
try {
const toto = Promise.all(
const { data } = await Promise.all(
imagesToDelete.value.map(
async (el) =>
await axios.patch(
@@ -281,7 +281,7 @@ function patchCollectionItems(): void {
)
)
)
console.log(toto)
console.log(data)
} catch (e) {
console.log('EEERRR', e)
}