I am trying to log something after a bunch of files have been written using Promise.all. But somehow the last file in my array always calls back after the Promise.all has resolved.

Please see the code & output below.

```
Promise.all(videos.map(async (video) => {
            const dest = `${destinationFolder}/${video.name}`;
            const response = await fetch(video.url);
            const buffer = await response.buffer();
            await fs.writeFile(dest, buffer, () => {
                console.log(`✔ Downloaded video: ${video.name} to ${dest}`);
            });
        }
    )).then(() => {
        console.log(`✨ Downloaded all videos to ${destinationFolder}`);
    });

```

Expected output:

```
✔ Downloaded video: video1.mp4 to ./dest/video1.mp4
✔ Downloaded video: video2.mp4 to ./dest/video2.mp4
✨ Downloaded all videos to ./dest

```

Actual output:

```
✔ Downloaded video: video1.mp4 to ./dest/video1.mp4
✨ Downloaded all videos to ./dest
✔ Downloaded video: video2.mp4 to ./dest/video2.mp4

```