log debug

This commit is contained in:
Andreani Jean
2023-06-27 15:23:12 +02:00
parent f69aba17ea
commit 5778387706

View File

@@ -328,8 +328,12 @@ async function patchCollectionItems(): Promise<void> {
const chunksToDelete = spliceIntoChunks(imagesToDelete.value, 4)
try {
chunksToDelete.map(async (el) => {
console.log('chunksToDelete', el)
console.log('chunksToDeletechunksToDeletechunksToDeletechunksToDelete')
const itemsPatch = await Promise.all(
el.map((ele) => {
console.log('ELEEE', ele)
console.log('eleeleeleeleeleeleeleele')
const imageToDelete = userPhotos.value.find((elem) => elem.id === ele)
if (imagesToDeleteHaveDifferentStatus.value) {
return patchAndResetCollection('true', ele)