Skip to content

Commit 73113fe

Browse files
authored
fix: Uploading multiple images with same name doesn't add the metadata stats correctly
fix: remove the checking if metadata are already cached by filename
2 parents ec2f583 + bcfc1f9 commit 73113fe

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/shared/metadata-saver.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ export const saveMetadata = _metadataArray => {
2222
return Promise.resolve()
2323
}
2424

25-
// Check if all metadata entries are already cached (by filename)
26-
const allCached = metadataArray.every( entry => getCachedMetadata( entry.filename ) )
27-
if ( allCached ) {
28-
// eslint-disable-next-line no-console
29-
// console.log( 'Metadata already saved successfully for all filenames:', metadataArray.map( m => m.filename ) )
30-
return Promise.resolve()
31-
}
32-
3325
// Mark all as successful in cache, keep a local copy of the metadata
3426
metadataArray.forEach( entry => {
3527
if ( entry.filename ) {

0 commit comments

Comments
 (0)